Tetra constructor
Tetra(
- ShapeConfig config,
- Vec3 p1,
- Vec3 p2,
- Vec3 p3,
- 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),];
}