One way to calculate this volume is:
1 [ax bx cx dx] V = --- det [ay by cy dy] 6 [az bz cz dz] [ 1 1 1 1]
This is connected with the estimation of the determinant 4 Γ 4. It generalizes well to simplexes of higher dimensions, and 6 is a special case of n !, a factorial of dimension. The resulting volume will be oriented, that is, it may be negative depending on the order of the points. If you do not want this, take the absolute value of the result.
If you have a math library on hand, the above wording may be the easiest to write, and the software can take it from there. If not, you can simplify things first by subtracting the d-coordinates from c to c. This will not change the volume, but rotate the rightmost column to (0, 0, 0, 1)
. As a result, you can calculate the value of the matrix simply as a determinant of the upper left 3 Γ 3 submatrix. And using the equation
det (a, b, c) = a
You will receive a Surya answer formula.
If you do not have coordinates for the points, but only the distances between them, look at the Tartaglia Formula , which is basically the square version above, although this is not as straightforward as it would seem at first glance.
source share