Poly class

Constructors

Poly()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

isPointInPolygon(Point point, List<Point> vertices) bool
Check if a Point point is inside a polygon representing by a List of Point vertices by using a Ray-Casting algorithm
rayCastIntersect(Point point, Point vertA, Point vertB) bool
Ray-Casting algorithm implementation Calculate whether a horizontal ray cast eastward from point will intersect with the line between vertA and vertB Refer to https://en.wikipedia.org/wiki/Point_in_polygon for more explanation or the example comment bloc at the end of this file