Tetra constructor

Tetra(
  1. ShapeConfig config,
  2. Vec3 p1,
  3. Vec3 p2,
  4. Vec3 p3,
  5. Vec3 p4,
)

Tetra shape.

config the configuration of the shape

Implementation

Tetra(ShapeConfig config, Vec3 p1, Vec3 p2, Vec3 p3, Vec3 p4 ):super(config){
  type = Shapes.tetra;
  verts = [ p1, p2, p3, p4 ];
  faces = [ mtri(p1, p2, p3), mtri(p2, p3, p4),];
}