Struct truster::intersection::HitRecord[][src]

pub struct HitRecord { /* fields omitted */ }
Expand description

HitRecord stores some information relating to ray-shape intersections. Cloning is near constant time and memory.

Implementations

Returns a new HitRecord corresponding to the given intersection and ray.

Returns the shape self is holding.

Returns the point self is holding.

Returns the normal self is holding.

Returns the eye self is holding.

Returns self’s point slightly outwards from from the shape.

Returns self’s point slightly inwards from from the shape.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.