[][src]Struct tray_rust::film::render_target::ImageSample

pub struct ImageSample {
    pub x: f32,
    pub y: f32,
    pub color: Colorf,
}

A struct containing results of an image sample where a ray was fired through continuous pixel coordinates [x, y] and color color was computed

Fields

x: f32y: f32color: Colorf

Methods

impl ImageSample[src]

pub fn new(x: f32, y: f32, color: Colorf) -> ImageSample[src]

Auto Trait Implementations

impl Send for ImageSample

impl Sync for ImageSample

impl Unpin for ImageSample

impl UnwindSafe for ImageSample

impl RefUnwindSafe for ImageSample

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> SetParameter for T[src]