An abstract over the list of Segment
s. Alternative representation of a polygon.
Segments must be connected to form a complete polygonal shape. Provides a more efficient distance calculus.
See also:
Static variables
Static methods
staticcontainsPoint(this:Array<Segment>, p:Point, isConvex:Bool):Bool
Tests if Point p
is inside this Segments.
Parameters:
p | The Point to test against. |
---|---|
isConvex | Use simplified collision test suited for convex polygons. Results are undefined if polygon is concave. Note: Currently only convex check is implemented and using non-convex test results in an exception. |
staticinlinedistance(this:Array<Segment>, p:Point):Float
Returns distance from the Segments to the Point p
.
staticdistanceSq(this:Array<Segment>, p:Point):Float
Returns squared distance from the Segments to the Point p
.