Struct collision::primitive::Cylinder [] [src]

pub struct Cylinder<S> { /* fields omitted */ }

Cylinder primitive Cylinder body is aligned with the Y axis, with local origin in the center of the cylinders.

Methods

impl<S> Cylinder<S> where
    S: BaseFloat
[src]

[src]

Create a new cylinder

[src]

Get radius

[src]

Get height

Trait Implementations

impl<S: Debug> Debug for Cylinder<S>
[src]

[src]

Formats the value using the given formatter.

impl<S: Clone> Clone for Cylinder<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: PartialEq> PartialEq for Cylinder<S>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<S> Primitive for Cylinder<S> where
    S: BaseFloat
[src]

Point type

[src]

Get the support point on the shape in a given direction. Read more

impl<S> ComputeBound<Aabb3<S>> for Cylinder<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> ComputeBound<Sphere<S>> for Cylinder<S> where
    S: BaseFloat
[src]

[src]

Compute the bounding volume

impl<S> Discrete<Ray3<S>> for Cylinder<S> where
    S: BaseFloat
[src]

[src]

Intersection test

impl<S> Continuous<Ray3<S>> for Cylinder<S> where
    S: BaseFloat
[src]

Result returned by the intersection test

[src]

Intersection test