[][src]Struct libraymarcher::RayMarcher

pub struct RayMarcher<C, O: SceneObject<C>> {
    pub object: O,
    pub config: RayMarcherConfig<C>,
}

Fields

object: O

Object or scene to render

config: RayMarcherConfig<C>

Configuration to run under. see RayMarcherConfig

Implementations

impl<C: Color, O: SceneObject<C>> RayMarcher<C, O>[src]

pub fn get_pixel_color(&self, x: usize, y: usize, t: f64) -> C[src]

Marches a ray (and secondary rays) to get a final color. Will send multiple rays if anti-aliasing is enabled, and average them.

x and y are the pixel locations. They must be with the width and height of the configuration.

t is the varied parameter, used for animation.

Returns the traced color of the pixel.

Auto Trait Implementations

impl<C, O> RefUnwindSafe for RayMarcher<C, O> where
    C: RefUnwindSafe,
    O: RefUnwindSafe

impl<C, O> Send for RayMarcher<C, O> where
    C: Send,
    O: Send

impl<C, O> Sync for RayMarcher<C, O> where
    C: Sync,
    O: Sync

impl<C, O> Unpin for RayMarcher<C, O> where
    C: Unpin,
    O: Unpin

impl<C, O> UnwindSafe for RayMarcher<C, O> where
    C: UnwindSafe,
    O: UnwindSafe

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, 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.