Calculates the volume of a tetrahedron. This is simply the unrolled determinant:
With:
This function works only for list of vectors, for performance reasons will not check the inputs, will throw an error instead.
(This works faster than numpy.linalg.det repeated over the list of tetrahedrons)
Parameters : | p1, p2, p3, p4 : numpy.ndarray \((N,3)\)
|
---|---|
Returns : | v : numpy.ndarray \((N)\)
|