autopdex.geometry.triangle_area

autopdex.geometry.triangle_area(x_edges)[source]

Compute the area of a triangle given its vertices (jitted).

Parameters:

x_edges (jnp.ndarray) – Array of shape (3, 2) containing the coordinates of the triangle’s vertices.

Returns:

The area of the triangle.

Return type:

float