libs.utils.geometry_calculators

Undocumented in source.

Members

Functions

distanceBetweenTwoPoints
double distanceBetweenTwoPoints(Point p1, Point p2)

Implementation of distance between 2 points.

interpolate
float interpolate(float x1, float x3, float y1, float y2, float y3)
Undocumented in source. Be warned that the author may not have intended to support it.
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