Struct mgf::Ray
[−]
[src]
pub struct Ray {
pub p: Point3<f32>,
pub d: Vector3<f32>,
}A point and a direction with infinite distance.
Fields
p: Point3<f32>
The origin of the ray.
d: Vector3<f32>
The direction of the ray. Does not need to be normalized.
Trait Implementations
impl Intersects<Plane> for Ray[src]
fn intersection(&self, rhs: &Plane) -> Option<Intersection>[src]
Returns an Intersection if one exists.
impl Intersects<AABB> for Ray[src]
fn intersection(&self, a: &AABB) -> Option<Intersection>[src]
Returns an Intersection if one exists.
impl Intersects<Sphere> for Ray[src]
fn intersection(&self, s: &Sphere) -> Option<Intersection>[src]
Returns an Intersection if one exists.
impl Intersects<Capsule> for Ray[src]
fn intersection(&self, cap: &Capsule) -> Option<Intersection>[src]
Returns an Intersection if one exists.
impl Intersects<Moving<Sphere>> for Ray[src]
fn intersection(&self, s: &Moving<Sphere>) -> Option<Intersection>[src]
Returns an Intersection if one exists.
impl Intersects<Triangle> for Ray[src]
fn intersection(&self, rhs: &Triangle) -> Option<Intersection>[src]
Returns an Intersection if one exists.
impl Intersects<Rectangle> for Ray[src]
fn intersection(&self, rhs: &Rectangle) -> Option<Intersection>[src]
Returns an Intersection if one exists.
impl Copy for Ray[src]
impl Clone for Ray[src]
fn clone(&self) -> Ray[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 Debug for Ray[src]
impl From<Segment> for Ray[src]
impl MinDistance<Point3<f32>> for Ray[src]
impl Add<Vector3<f32>> for Ray[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, v: Vector3<f32>) -> Self[src]
Performs the + operation.
impl Sub<Vector3<f32>> for Ray[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, v: Vector3<f32>) -> Self[src]
Performs the - operation.
impl AddAssign<Vector3<f32>> for Ray[src]
fn add_assign(&mut self, v: Vector3<f32>)[src]
Performs the += operation.
impl SubAssign<Vector3<f32>> for Ray[src]
fn sub_assign(&mut self, v: Vector3<f32>)[src]
Performs the -= operation.