public interface Rectangle3d extends Polygon3d
Modifier and Type | Method and Description |
---|---|
static Rectangle3d |
create(List<? extends Vector3d> vertices)
Creates a new instance from the given points.
|
static Rectangle3d |
create(Rectangle3d other)
Creates a new instance.
|
Segment3d |
getLongerRectangleSegment()
Returns the longer segment of the rectangle.
|
double |
getLongerRectangleSegmentLength()
Returns the length of the longer rectangle segment.
|
List<Segment3d> |
getLongerRectangleSegments()
Returns the longer segments of the rectangle.
|
Segment3d |
getShorterRectangleSegment()
Returns the shorter segment of the rectangle.
|
double |
getShorterRectangleSegmentLength()
Returns the length of the shorter rectangle segment.
|
List<Segment3d> |
getShorterRectangleSegments()
Returns the shorter segments of the rectangle.
|
contains, contains, create, edgesIntersect, getArea, getBoundingBox, getCentroid, getEdgeIterator, getMean, getNormal, getVertexCount, getVertices, intersect, intersects, isConvex
forEach, iterator, spliterator
Segment3d getLongerRectangleSegment()
List<Segment3d> getLongerRectangleSegments()
double getLongerRectangleSegmentLength()
Segment3d getShorterRectangleSegment()
List<Segment3d> getShorterRectangleSegments()
double getShorterRectangleSegmentLength()
static Rectangle3d create(List<? extends Vector3d> vertices)
create
in interface Polygon3d
vertices
- list of points to create the rectangleIllegalArgumentException
- if the points do not form a rectanglestatic Rectangle3d create(Rectangle3d other)
other
- the other rectangleCopyright © 2019 Solibri, Inc.. All rights reserved.