Learn R Programming

uniformly (version 0.5.0)

volume_tetrahedron: Tetrahedron volume

Description

Volume of a tetrahedron (dimension 3).

Usage

volume_tetrahedron(v1, v2, v3, v4)

Value

The volume of the tetrahedron.

Arguments

v1, v2, v3, v4

vertices of the tetrahedron

See Also

volume_simplex for the volume of a simplex in arbitrary dimension.

Examples

Run this code
v1 <- c(0,0,0); v2 <- c(1,0,0); v3 <- c(0,1,0); v4 <- c(0,0,1)
volume_tetrahedron(v1, v2, v3, v4)
volume_unitSimplex(3)

Run the code above in your browser using DataLab