pub struct Capsule {
    pub axis: LineSegment,
    pub radius: f32,
}
Expand description

A cylinder capped with a half-sphere at each end

Fields

axis: LineSegment

The central axis of the capsule

radius: f32

The radius of the capsule

Implementations

Construct a capsule from the end points of the central axis, and a radius

Trait Implementations

The closest point to another object

The closest point to another object

Formats the value using the given formatter. Read more

The distance between two objects

The distance between two objects

The distance between two objects

The distance between two objects

The distance between two objects

The distance between two objects

The distance between two objects

The distance between two objects

Whether this shape intersect with the other

Whether this shape intersect with the other

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.