Struct collision::primitive::Particle [] [src]

pub struct Particle<P> { /* fields omitted */ }

Represents a particle in space.

Only have implementations of intersection tests for movement, using (Particle, Range<P>) where P is the positional Point of the particle at the start and end of movement. These intersection tests can be used with any primitive that has Ray intersection tests implemented.

Methods

impl<P> Particle<P>
[src]

[src]

Create a new particle

Trait Implementations

impl<P: Debug> Debug for Particle<P>
[src]

[src]

Formats the value using the given formatter.

impl<P: Clone> Clone for Particle<P>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<P: PartialEq> PartialEq for Particle<P>
[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<P> Discrete<Ray<P::Scalar, P, P::Diff>> for Particle<P> where
    P: EuclideanSpace,
    P::Diff: InnerSpace,
    P::Scalar: BaseFloat
[src]

[src]

Ray needs to be in particle object space

impl<P> Continuous<Ray<P::Scalar, P, P::Diff>> for Particle<P> where
    P: EuclideanSpace,
    P::Diff: InnerSpace,
    P::Scalar: BaseFloat
[src]

Result returned by the intersection test

[src]

Ray needs to be in particle object space