#[repr(C)]#[repr(align(16))]pub struct RTCRay4 {
pub org_x: [f32; 4],
pub org_y: [f32; 4],
pub org_z: [f32; 4],
pub tnear: [f32; 4],
pub dir_x: [f32; 4],
pub dir_y: [f32; 4],
pub dir_z: [f32; 4],
pub time: [f32; 4],
pub tfar: [f32; 4],
pub mask: [c_uint; 4],
pub id: [c_uint; 4],
pub flags: [c_uint; 4],
}
Fields
org_x: [f32; 4]
org_y: [f32; 4]
org_z: [f32; 4]
tnear: [f32; 4]
dir_x: [f32; 4]
dir_y: [f32; 4]
dir_z: [f32; 4]
time: [f32; 4]
tfar: [f32; 4]
mask: [c_uint; 4]
id: [c_uint; 4]
flags: [c_uint; 4]
Implementations
sourceimpl RTCRay4
impl RTCRay4
pub fn empty() -> Ray4
pub fn new(origin: [Vector3<f32>; 4], dir: [Vector3<f32>; 4]) -> Ray4
pub fn segment(
origin: [Vector3<f32>; 4],
dir: [Vector3<f32>; 4],
tnear: [f32; 4],
tfar: [f32; 4]
) -> Ray4
pub fn iter(&self) -> SoARayIter<'_, Ray4>ⓘNotable traits for SoARayIter<'a, T>impl<'a, T: SoARay + 'a> Iterator for SoARayIter<'a, T> type Item = SoARayRef<'a, T>;
pub fn iter_mut(&mut self) -> SoARayIterMut<'_, Ray4>ⓘNotable traits for SoARayIterMut<'a, T>impl<'a, T: SoARay + 'a> Iterator for SoARayIterMut<'a, T> type Item = SoARayRefMut<'a, T>;
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RTCRay4
impl Send for RTCRay4
impl Sync for RTCRay4
impl Unpin for RTCRay4
impl UnwindSafe for RTCRay4
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more