volume_tetrahedron: Tetrahedron volume

View source: R/volumes.R

volume_tetrahedronR 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)

uniformly documentation built on July 26, 2023, 6:06 p.m.