volume_tetrahedron {uniformly}R Documentation

Tetrahedron volume

Description

Volume of a tetrahedron (dimension 3).

Usage

volume_tetrahedron(v1, v2, v3, v4)

Arguments

v1, v2, v3, v4

vertices of the tetrahedron

Value

The volume of the tetrahedron.

See Also

volume_simplex for the volume of a simplex in arbitrary dimension.

Examples

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)

[Package uniformly version 0.5.0 Index]