[][src]Trait mgf::Particle

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

const DT: f32

The length of the time step.

Loading content...

Required methods

fn pos(&self) -> Point3<f32>

The origin of the particle.

fn dir(&self) -> Vector3<f32>

The direction of the particle.

fn rotate_around<R: Rotation3<f32>>(&self, c: Point3<f32>, r: R) -> Self

Rotate this particle around the world space of an object.

Loading content...

Implementors

impl Particle for Ray[src]

A ray represents a point particle traveling in a direction with infinite velocity.

impl Particle for Segment[src]

A segment represents a point particle traveling in a direction with finite velocity.

Loading content...