areaStatic static method
Computes the 2D area of a triangle. The area value is always non-negative.
@param a a vertex of the triangle @param b a vertex of the triangle @param c a vertex of the triangle @return the area of the triangle
@see #signedArea(Coordinate, Coordinate, Coordinate)
Implementation
static double areaStatic(Coordinate a, Coordinate b, Coordinate c) {
return (((c.x - a.x) * (b.y - a.y) - (b.x - a.x) * (c.y - a.y)) / 2).abs();
}