pub type Cylinder = Cylinder;Expand description
A cylindrical shape.
Aliased Type§
#[repr(C)]pub struct Cylinder {
pub half_height: f32,
pub radius: f32,
}Fields§
§half_height: f32Half the length of the cylinder along the Y axis.
The cylinder extends from -half_height to +half_height along Y.
Total height = 2 * half_height. Must be positive.
radius: f32The radius of the circular cross-section.
All points on the cylindrical surface are at this distance from the Y axis. Must be positive.