libs.utils.geometry_calculators

Undocumented in source.

Members

Functions

distanceBetweenTwoPoints
double distanceBetweenTwoPoints(Point p1, Point p2)

Implementation of distance between 2 points.

polygonArea
double polygonArea(Point[] pts)

Calculates the area of given polygon using the Shoelace formula.

polygonPerimeter
double polygonPerimeter(Point[] pts)

Calculates the total perimeter of a given polygon

Meta