public interface MRectangle3d extends Rectangle3d, MPolygon3d
Modifier and Type | Method and Description |
---|---|
static MRectangle3d |
create(List<? extends Vector3d> vertices)
Creates a new instance from the given points.
|
static MRectangle3d |
create(Rectangle3d 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 Vector3d> points)
Sets the given points to the rectangle.
|
getLongerRectangleSegment, getLongerRectangleSegmentLength, getLongerRectangleSegments, getShorterRectangleSegment, getShorterRectangleSegmentLength, getShorterRectangleSegments
create, transform, translate
contains, contains, edgesIntersect, getArea, getBoundingBox, getCentroid, getEdgeIterator, getMean, getNormal, getVertexCount, getVertices, intersect, intersects, isConvex
forEach, iterator, spliterator
void resize(double resize)
resize
- the resize amountboolean setPoints(List<? extends Vector3d> points)
points
- list of pointsstatic MRectangle3d create(List<? extends Vector3d> vertices)
create
in interface MPolygon3d
create
in interface Polygon3d
create
in interface Rectangle3d
vertices
- list of points to create the rectangleIllegalArgumentException
- if the points do not form a rectanglestatic MRectangle3d create(Rectangle3d other)
create
in interface Rectangle3d
other
- the other rectangleCopyright © 2019 Solibri, Inc.. All rights reserved.