Struct turbine::math::Ray [] [src]

pub struct Ray {
    pub pos: Vec3,
    pub dir: Vec3,
}

A ray.

Fields

The position of the ray.

The direction of the ray.

Methods

impl Ray
[src]

[src]

Creates a ray in view coordinates.

[src]

Returns position in ground plane. Returns None if looking up above the ground. Returns None if ground intersects the start position.

Trait Implementations

impl Debug for Ray
[src]

[src]

Formats the value using the given formatter.

impl Copy for Ray
[src]

impl Clone for Ray
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more