public interface MRectangle2d extends Rectangle2d, MPolygon2d
| Modifier and Type | Method and Description |
|---|---|
static MRectangle2d |
create(List<? extends Vector2d> vertices)
Creates a new instance from the given points.
|
static MRectangle2d |
create(Rectangle2d other)
Creates a new instance.
|
void |
resize(double resize)
Resizes the rectangle by the given amount by adding the resize amount
as tolerance to each side of the rectangle.
|
boolean |
setPoints(List<? extends Vector2d> points)
Sets the given points to the rectangle.
|
equalsWithTolerance, getLongerRectangleSegment, getLongerRectangleSegmentLength, getLongerRectangleSegments, getShorterRectangleSegment, getShorterRectangleSegmentLength, getShorterRectangleSegmentscreate, simplify, translatecontains, contains, distance, distance, distance, distanceSquared, distanceSquared, distanceSquared, getArea, getBoundingRectangle, getCentroid, getEdgeIterator, getOrientedBoundingRectangle, getPerimeter, getVertexCount, getVertices, intersectEdges, intersects, isConvex, isCounterClockwise, shortestSegmentTo, toAreaforEach, iterator, spliteratorvoid resize(double resize)
resize in interface MPolygon2dresize - the resize amountboolean setPoints(List<? extends Vector2d> points)
points - list of pointsstatic MRectangle2d create(List<? extends Vector2d> vertices)
create in interface MPolygon2dcreate in interface Polygon2dcreate in interface Rectangle2dvertices - list of points to create the rectangleIllegalArgumentException - if the points do not form a rectanglestatic MRectangle2d create(Rectangle2d other)
create in interface Rectangle2dother - the other rectangleCopyright © 2019 Solibri, Inc.. All rights reserved.