Struct mgf::Capsule [] [src]

pub struct Capsule {
    pub a: Point3<f32>,
    pub d: Vector3<f32>,
    pub r: f32,
}

A sphere swept along a line.

Fields

Methods

impl Capsule
[src]

[src]

Rotates the capsule about the origin

Trait Implementations

impl BoundedBy<AABB> for Capsule
[src]

[src]

impl BoundedBy<Sphere> for Capsule
[src]

[src]

impl Copy for Capsule
[src]

impl Clone for Capsule
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Capsule
[src]

[src]

Formats the value using the given formatter.

impl MinDistance<Point3<f32>> for Capsule
[src]

[src]

Returns closest point on the capsule to q

impl Add<Vector3<f32>> for Capsule
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Vector3<f32>> for Capsule
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl AddAssign<Vector3<f32>> for Capsule
[src]

[src]

Performs the += operation.

impl SubAssign<Vector3<f32>> for Capsule
[src]

[src]

Performs the -= operation.

impl Shape for Capsule
[src]

[src]

Returns the center of mass of the geometry, assuming a regular density.

[src]

Sets the center of the shape to p.

impl Collider<Intersection, Ray> for Capsule
[src]

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

[src]

Returns the first collision found if any exists.

impl Collider<Contact, Moving<Sphere>> for Capsule
[src]

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

[src]

Returns the first collision found if any exists.

impl Collider<Contact, Moving<Capsule>> for Capsule
[src]

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

[src]

Returns the first collision found if any exists.

impl Inertia for Capsule
[src]

[src]