Package com.solibri.geometry.primitive3d
Interface Rectangle3d
-
- All Known Subinterfaces:
MRectangle3d
public interface Rectangle3d extends Polygon3d
Read-only interface for handling rectangles in 3-dimensional space.- Since:
- 9.10.2
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Rectangle3d
create(Rectangle3d other)
Creates a new instance.static Rectangle3d
create(List<? extends Vector3d> vertices)
Creates a new instance from the given points.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.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface com.solibri.geometry.primitive3d.Polygon3d
contains, contains, edgesIntersect, getArea, getBoundingBox, getCentroid, getEdgeIterator, getMean, getNormal, getVertexCount, getVertices, intersect, intersects, isConvex
-
-
-
-
Method Detail
-
getLongerRectangleSegment
Segment3d getLongerRectangleSegment()
Returns the longer segment of the rectangle.- Returns:
- segment
- Since:
- 9.10.2
-
getLongerRectangleSegments
List<Segment3d> getLongerRectangleSegments()
Returns the longer segments of the rectangle.- Returns:
- segments list with the longer segments
- Since:
- 9.10.2
-
getLongerRectangleSegmentLength
double getLongerRectangleSegmentLength()
Returns the length of the longer rectangle segment.- Returns:
- the length of the longer segment
- Since:
- 9.10.2
-
getShorterRectangleSegment
Segment3d getShorterRectangleSegment()
Returns the shorter segment of the rectangle.- Returns:
- segment
- Since:
- 9.10.2
-
getShorterRectangleSegments
List<Segment3d> getShorterRectangleSegments()
Returns the shorter segments of the rectangle.- Returns:
- segments list with the shorter segments
- Since:
- 9.10.2
-
getShorterRectangleSegmentLength
double getShorterRectangleSegmentLength()
Returns the length of the shorter rectangle segment.- Returns:
- the length of the shorter segment
- Since:
- 9.10.2
-
create
static Rectangle3d create(List<? extends Vector3d> vertices)
Creates a new instance from the given points.- Parameters:
vertices
- list of points to create the rectangle- Returns:
- a Rectangle3d instance
- Throws:
IllegalArgumentException
- if the points do not form a rectangle- Since:
- 9.10.2
-
create
static Rectangle3d create(Rectangle3d other)
Creates a new instance.- Parameters:
other
- the other rectangle- Returns:
- the newly created instance
- Since:
- 9.10.2
-
-