magnet.geometric_utils.tetrahedron_volume#
- magnet.geometric_utils.tetrahedron_volume(vertices: ndarray) float #
Compute the volume of a simplex.
The volume is computed using the Cayley-Menger determinant.
- Parameters:
vertices (np.ndarray v) – Array of shape (dim + 1, dim), where dim is the dimension of the considered space, containing the coordinates of the vertices of the simplex.
- Returns:
The volume of the simplex.
- Return type:
float