PolygonShape

Shape
public sealed class PolygonShape : Shape
Represents an n-gon for ray intersections. Shape may have concave portions, although self-intersections are ill-advised.

Constructors

PolygonShape

#
Create a new n-gon.
public PolygonShape()

PolygonShape

#
Create a new n-gon.
public PolygonShape(
params Point2d[]
corners
)

PolygonShape

#
Create a new n-gon.
public PolygonShape(
params Point3d[]
corners
)

PolygonShape

#
Create a new n-gon.
public PolygonShape(
params PointF[]
corners
)

Properties

Bounds

#
Gets the bounding box for this shape.
public override Box Bounds { get; }
Shape.Bounds

Count

#
Gets the number of corners.
public int Count { get; }

IsEmpty

#
Gets whether this polygon is considered empty (i.e. zero area).
public bool IsEmpty { get; }

Methods

Corner

#
Gets the corner at the specified index.
public Point2d Corner(
index
)

IsCoincident

#
Test whether a specific coordinate is coincident with this obstacle.
public override bool IsCoincident()
True if point is coincident.

Overlap

#
Determine the overlap between this shape and a box.
public override Overlap Overlap(
box
Box.
)
Overlap topology.
Shape.Overlap