Polygon class
A class for representing two-dimensional Polygon defined with List<Point<num>> points
.
Constructors
Properties
Methods
-
contains(
num px, num py) → bool -
returns
true
if(x,y)
is present insidePolygon
-
isPointInside(
Offset i) → bool -
returns
true
ifPoint
is present insidePolygon
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getNearestPoint(
List< Offset> points, Offset latestPoints) → Offset? - Get the nearest point.