Enum collision::primitive::Primitive3 [] [src]

pub enum Primitive3<S> where
    S: BaseFloat
{ Particle(Particle3<S>), Quad(Quad<S>), Sphere(Sphere<S>), Cuboid(Cuboid<S>), Cube(Cube<S>), Cylinder(Cylinder<S>), Capsule(Capsule<S>), ConvexPolyhedron(ConvexPolyhedron<S>), }

Wrapper enum for 3D primitives, that also implements the Primitive trait, making it easier to use many different primitives in algorithms.

Variants

Particle

Rectangular plane

Sphere

Cuboid

Cube

Cylinder

Capsule

Convex polyhedron with any number of vertices/faces

Trait Implementations

impl<S: Debug> Debug for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: Clone> Clone for Primitive3<S> where
    S: BaseFloat
[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 Primitive3<S> where
    S: BaseFloat
[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> From<Particle3<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Performs the conversion.

impl<S> From<Quad<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Performs the conversion.

impl<S> From<Sphere<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Performs the conversion.

impl<S> From<Cube<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Performs the conversion.

impl<S> From<Cuboid<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl<S> From<Capsule<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Performs the conversion.

impl<S> From<ConvexPolyhedron<S>> for Primitive3<S> where
    S: BaseFloat
[src]

[src]

Performs the conversion.

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

[src]

Compute the bounding volume

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

[src]

Compute the bounding volume

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

Point type

[src]

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

impl<S> DiscreteTransformed<Ray3<S>> for Primitive3<S> where
    S: BaseFloat
[src]

Point type for transformation of self

[src]

Intersection test for transformed self

impl<S> ContinuousTransformed<Ray3<S>> for Primitive3<S> where
    S: BaseFloat
[src]

Point type for transformation of self

Result of intersection test

[src]

Intersection test for transformed self

Auto Trait Implementations

impl<S> Send for Primitive3<S> where
    S: Send

impl<S> Sync for Primitive3<S> where
    S: Sync