area_triangle_xy

compas.geometry.area_triangle_xy(triangle)[source]

Compute the area of a triangle defined by three points lying in the XY-plane.

Parameters

triangle ([point, point, point] | Polygon) – XY(Z) coordinates of the corners of the triangle.

Returns

float – The area of the triangle.