pub struct Ray {
    pub origin: Point,
    pub direction: Vector3,
}
Expand description

An infinite ray.

Fields

origin: Point

The starting point of the ray.

direction: Vector3

The direction of the ray.

Implementations

Construct a ray from a starting point and direction.

Trait Implementations

Whether this shape collides with the other, and where.

Formats the value using the given formatter. Read more

Returns the distance between the ray and a line.

Returns the distance between the ray and a line segment.

Returns the distance between the ray and a given point.

Returns the distance between the ray and another ray.

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Whether this shape intersect with the other.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.