PolygonUtils class Null safety

Polygon Utils

Constructors

PolygonUtils()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

area(List<Point<num>> polygon) double
Get Polygon area
getBottomPoint(List<Point<num>> polygon) Point<num>
Get the furthest bottom point of the polygon
getMostLeftPoint(List<Point<num>> polygon) Point<num>
Get the furthest left point of the polygon
getMostRightPoint(List<Point<num>> polygon) Point<num>
Get the furthest right point of the polygon
getPolygonBound(List<Point<num>> polygon) List<Point<num>>
Get all the boundary of the polygon
getPolygonFurthestVertexFromCentroid(List<Point<num>> list, Point<num> centroid) Point<num>
Get the furthest vertex
getPolygonInnerCentroid(List<Point<num>> list) Point<num>
Get the centroid of inner circle
getPolygonInnerCircle(List<Point<num>> list) Circle
Get the outer circle
getPolygonOuterCircle(List<Point<num>> list) Circle
Get the outer circle
getPolygonOuterCircleCentroid(List<Point<num>> list) Point<num>
Get the centroid of Outer circle
getPolygonSides(List<Point<num>> polygon) List<Line>
Get all sides of the polygon
getTopPoint(List<Point<num>> polygon) Point<num>
Get the furthest top point of the polygon
isInsidePolygon(Point<num> point, List<Point<num>> polygon) bool
Check if a point is inside the polygon
perimeter(List<Point<num>> polygon) double
Get Polygon perimeter