Struct RayN

Source
pub struct RayN { /* private fields */ }
Expand description

A ray stream stored in SoA format

Implementations§

Source§

impl RayN

Source

pub fn new(n: usize) -> RayN

Allocate a new Ray stream with room for n rays

Source

pub fn iter(&self) -> SoARayIter<'_, RayN>

Source

pub fn iter_mut(&mut self) -> SoARayIterMut<'_, RayN>

Source

pub fn len(&self) -> usize

Source

pub unsafe fn as_raynp(&mut self) -> RTCRayNp

Trait Implementations§

Source§

impl SoARay for RayN

Source§

fn org(&self, i: usize) -> Vector3<f32>

Source§

fn set_org(&mut self, i: usize, o: Vector3<f32>)

Source§

fn dir(&self, i: usize) -> Vector3<f32>

Source§

fn set_dir(&mut self, i: usize, d: Vector3<f32>)

Source§

fn tnear(&self, i: usize) -> f32

Source§

fn set_tnear(&mut self, i: usize, near: f32)

Source§

fn tfar(&self, i: usize) -> f32

Source§

fn set_tfar(&mut self, i: usize, far: f32)

Source§

fn time(&self, i: usize) -> f32

Source§

fn set_time(&mut self, i: usize, time: f32)

Source§

fn mask(&self, i: usize) -> u32

Source§

fn set_mask(&mut self, i: usize, mask: u32)

Source§

fn id(&self, i: usize) -> u32

Source§

fn set_id(&mut self, i: usize, id: u32)

Source§

fn flags(&self, i: usize) -> u32

Source§

fn set_flags(&mut self, i: usize, flags: u32)

Auto Trait Implementations§

§

impl Freeze for RayN

§

impl RefUnwindSafe for RayN

§

impl Send for RayN

§

impl Sync for RayN

§

impl Unpin for RayN

§

impl UnwindSafe for RayN

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.