pub type Capsule = Capsule;Expand description
A capsule shape.
Aliased Type§
#[repr(C)]pub struct Capsule {
pub segment: Segment,
pub radius: f32,
}Fields§
§segment: SegmentThe line segment forming the capsule’s central axis.
The capsule extends from segment.a to segment.b, with hemispherical
caps centered at each endpoint.
radius: f32The radius of the capsule.
This is the distance from the central axis to the surface. Must be positive.
The total “thickness” of the capsule is 2 * radius.