PolygonalArea class

An implementation of a polygonal 2 dimensional Area. A convex hull is build from the list of points when an object is instantiated.

Inheritance

Constructors

PolygonalArea({required List<Point> points})
PolygonalArea.fromJson(Map<String, dynamic> json)

Properties

convexHullPoints List<Point>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
passable bool
finalinherited
points List<Point>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copy() Area
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointInArea(Point point) bool
A raycast checks if the point is inside the convexHullPoints.
override
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited