TriangularConePrimitive
public class TriangularConePrimitive : Primitive
{
// The height of the cone
public float height;
// The radius of the triangular base
public float radius;
// This transform must only contain rotation and translation components, not scale
public Matrix4F transform;
}
The base of the cone is centered at (0, 0, 0), and the tip extends upwards to (0, height, 0).
WARNING: the
transformmatrix should only contain rotation and translation operations, not scale. The size of the cone should be controlled via theradiusandheightproperties