-
-
Subinterfaces of Polygon2d in com.solibri.geometry.primitive2d
Modifier and Type |
Interface |
Description |
interface |
MPolygon2d |
Interface for handling simple polygons without holes in the XY-plane.
|
interface |
MRectangle2d |
Interface for handling rectangles in the XY-plane.
|
interface |
MTriangle2d |
Interface that represents a triangle in the XY-plane.
|
interface |
Rectangle2d |
Read-only interface for handling rectangles in the XY-plane.
|
interface |
Triangle2d |
Read-only interface for 2-dimensional triangles.
|
Methods in com.solibri.geometry.primitive2d with parameters of type Polygon2d
Modifier and Type |
Method |
Description |
boolean |
Polygon2d.contains(Polygon2d polygon) |
Returns true if the given polygon is inside this polygon.
|
static Area |
Area.create(Polygon2d polygon,
double resize) |
Creates an area with the given polygon and resize value.
|
static MArea |
MArea.create(Polygon2d polygon,
double offset) |
Creates an area with the given polygon and resize value.
|
static MPolygon2d |
MPolygon2d.create(Polygon2d polygon) |
Creates a 2-dimensional polygon with the contents deep copied from the given
polygon.
|
static Polygon2d |
Polygon2d.create(Polygon2d polygon) |
Creates a 2-dimensional polygon with the contents deep copied from the given
polygon.
|
default double |
Polygon2d.distance(Polygon2d polygon) |
Returns the minimum distance between this polygon and the given polygon.
|
double |
Polygon2d.distanceSquared(Polygon2d polygon) |
Returns the square of the distance between this polygon and the given
polygon.
|
boolean |
Polygon2d.intersects(Polygon2d polygon) |
Returns true if this polygon intersects the given polygon.
|
Segment2d |
Polygon2d.shortestSegmentTo(Polygon2d polygon) |
Returns the shortest segment between this polygon and the given polygon.
|
-