Triangular prism (source code)

= Triangular prism
{wiki}

A <triangular prism> is a <prism> whose two bases are congruent parallel <triangles>. One base is a <translation> of the other by a <vector> not parallel to its <plane>. Joining corresponding <vertices of a polygon> gives three <parallelogram> side faces, nine <edge of a polyhedron> segments and six <vertices of a polyhedron>.

The <triangular prism> is \b[right] when the translation <vector> is perpendicular to the base <plane>. Only in that case is it an orthogonal <Cartesian product> of a <triangle> with a <line segment>. An oblique <triangular prism> still has <volume> $Ah$, where $A$ is its base <area> and $h$ the perpendicular separation of the base <planes>; equal parallel cross sections give this formula by <integration>.