traingle_signed_area

traingle_signed_area(triangle)[source]

Determine the signed area of a triangle.

Parameters

triangle (ArrayLike) – A 3x2 list of coordinates.

Returns

The signed area of the triange. It will be negative if

the triangle has a clockwise winding, negative if the triangle has a counter-clockwise winding, and zero if the triangles points are collinear.

Return type

int