Cone

Type Alias Cone 

Source
pub type Cone = Cone;
Expand description

A cone shape.

Aliased Type§

#[repr(C)]
pub struct Cone { pub half_height: f32, pub radius: f32, }

Fields§

§half_height: f32

Half the total height of the cone.

The cone extends from y = -half_height (base center) to y = +half_height (apex). Must be positive.

§radius: f32

The radius of the circular base.

The base is a circle in the XZ plane at y = -half_height. Must be positive.