Interface Rectangle3d

All Superinterfaces:
Iterable<Vector3d>, Polygon3d
All Known Subinterfaces:
MRectangle3d

public interface Rectangle3d
extends Polygon3d
Read-only interface for handling rectangles in 3-dimensional space.
Since:
9.10.2
  • Method Details

    • 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