Trait mgf::Particle
[−]
[src]
pub trait Particle: Shape + Copy { const DT: f32; fn pos(&self) -> Point3<f32>; fn dir(&self) -> Vector3<f32>; }
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
Required Methods
fn pos(&self) -> Point3<f32>
The origin of the particle.
fn dir(&self) -> Vector3<f32>
The direction of the particle.