A tetrahedron, or triangular pyramid, is a polyhedron consisting of 4 triangles between 4 vertices. A tetrahedron splits the euclidean space in two by the plane defined by the first 3 vertices and the positive side being the side that includes the fourth vertex. If a all 4 vertices are coplanar the tetrahedron is considered degenerate. Tetrahedrons only exists in 3 dimensions.

tetrahedron(...) is_tetrahedron(x) as_tetrahedron(x)

... | Various input. See the Constructor section. |
---|---|

x | A vector of tetrahedrons or an object to convert to it |

An `euclid_tetrahedron`

vector

**3 dimensional tetrahedrons**

Providing four points will construct tetrahedrons in the order the points are given.

#> <3D euclid_tetrahedrons [2]> #> [1] [<x:5, y:5, z:1>, <x:7, y:3, z:2>, <x:4, y:2, z:4>, <x:6, y:6, z:5>] #> [2] [<x:3, y:7, z:3>, <x:2, y:1, z:7>, <x:1, y:4, z:8>, <x:8, y:8, z:6>]