Struct tinyraytracer::CollisionState[][src]

pub(crate) struct CollisionState {
    hit_point: Vec3,
    normal: Vec3,
    material: Material,
    ray: Ray,
}

Fields

hit_point: Vec3normal: Vec3material: Materialray: Ray

Implementations

impl CollisionState[src]

pub(crate) fn _jitter(&self, dir: Vec3, jitter: f32) -> Vec3[src]

pub(crate) fn reflected_ray(&self, jitter: f32) -> Ray[src]

pub(crate) fn refracted_ray(&self, jitter: f32) -> Ray[src]

Auto Trait Implementations

impl RefUnwindSafe for CollisionState

impl Send for CollisionState

impl Sync for CollisionState

impl Unpin for CollisionState

impl UnwindSafe for CollisionState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.