Struct rtbvh::RayPacket4[][src]

#[repr(align(16))]
pub struct RayPacket4 { pub origin_x: Vec4, pub origin_y: Vec4, pub origin_z: Vec4, pub direction_x: Vec4, pub direction_y: Vec4, pub direction_z: Vec4, pub inv_direction_x: Vec4, pub inv_direction_y: Vec4, pub inv_direction_z: Vec4, pub t: Vec4, pub pixel_ids: UVec4, }

Fields

origin_x: Vec4origin_y: Vec4origin_z: Vec4direction_x: Vec4direction_y: Vec4direction_z: Vec4inv_direction_x: Vec4inv_direction_y: Vec4inv_direction_z: Vec4t: Vec4pixel_ids: UVec4

Implementations

impl RayPacket4[src]

pub fn new(
    origins: [Vec4; 4],
    directions: [Vec4; 4],
    pixel_ids: [u32; 4]
) -> RayPacket4
[src]

pub fn origin_xyz(&self) -> (Vec4, Vec4, Vec4)[src]

pub fn direction_xyz(&self) -> (Vec4, Vec4, Vec4)[src]

pub fn ray(&self, index: usize) -> Ray[src]

pub fn t(&self) -> Vec4[src]

pub fn reset(&mut self)[src]

Trait Implementations

impl Clone for RayPacket4[src]

impl Copy for RayPacket4[src]

impl Debug for RayPacket4[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.