[−][src]Trait mgf::Particle
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
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.
Implementors
impl Particle for Ray
[src]
A ray represents a point particle traveling in a direction with infinite velocity.
const DT: f32
[src]
fn pos(&self) -> Point3<f32>
[src]
fn dir(&self) -> Vector3<f32>
[src]
fn rotate_around<R: Rotation3<f32>>(&self, c: Point3<f32>, r: R) -> Self
[src]
impl Particle for Segment
[src]
A segment represents a point particle traveling in a direction with finite velocity.