volumeoftetrahedron

Calculates the volume of a tetrahedron defined with four points. Depending on input, function can return scalar, vector or matrix

Arguments

  1. p1(x)
  2. p1(y)
  3. p1(z)
  4. p2(x)
  5. p2(y)
  6. p2(z)
  7. p3(x)
  8. p3(y)
  9. p3(z)
  10. p4(x)
  11. p4(y)
  12. p4(z)

Output

Tetrahedron volume

Examples

volumeoftetrahedron