Trait mgf::Particle[][src]

pub trait Particle: Shape + Copy {
    const DT: f32;

    fn pos(&self) -> Point3<f32>;
fn dir(&self) -> Vector3<f32>;
fn rotate_around<R: Rotation3<f32>>(&self, c: Point3<f32>, r: R) -> Self; }

A type that is linear in nature.

Particle types are used to represent the motion of point particles in space. Point particles do not have any spatial extent, i.e. volume.

Associated Constants

The length of the time step.

Required Methods

The origin of the particle.

The direction of the particle.

Rotate this particle around the world space of an object.

Implementors