Interface MPolygon3d

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

public interface MPolygon3d
extends Polygon3d
Interface for handling simple polygons without holes in 3-dimensional space.
Since:
9.10.2
  • Method Details

    • translate

      void translate​(Vector3d translator)
      Translates this polygon by the given vector.
      Parameters:
      translator - the vector by which this polygon is translated
      Since:
      9.10.2
    • transform

      void transform​(Matrix4d transformMatrix)
      Transforms this polygon using the given matrix.
      Parameters:
      transformMatrix - the matrix that defines the transform
      Since:
      9.10.2
    • create

      static MPolygon3d create​(Polygon3d polygon)
      Creates a polygon with the contents deep copied from the given polygon. The returned polygon does not take ownership of the given polygon.
      Parameters:
      polygon - the polygon whose contents are deep copied into the returned polygon
      Returns:
      a polygon with the contents deep copied from the given polygon
      Since:
      9.10.2
    • create

      static MPolygon3d create​(List<? extends Vector3d> vertices)
      Creates a polygon with the given vertices. The returned polygon does not take ownership of the given vertices.
      Parameters:
      vertices - the vertices used for creating the returned polygon
      Returns:
      a polygon with the given vertices
      Since:
      9.10.2