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]
Trait Implementations
impl<P: Debug> Debug for Particle<P>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<P: Clone> Clone for Particle<P>
[src]
fn clone(&self) -> Particle<P>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<P: PartialEq> PartialEq for Particle<P>
[src]
fn eq(&self, __arg_0: &Particle<P>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Particle<P>) -> bool
[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]
P: EuclideanSpace,
P::Diff: InnerSpace,
P::Scalar: BaseFloat,
fn intersects(&self, ray: &Ray<P::Scalar, P, P::Diff>) -> bool
[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]
P: EuclideanSpace,
P::Diff: InnerSpace,
P::Scalar: BaseFloat,