pub struct HitN { /* private fields */ }Implementations§
Source§impl HitN
impl HitN
pub fn new(n: usize) -> HitN
pub fn any_hit(&self) -> bool
pub fn hits<'a>(&'a self) -> impl Iterator<Item = bool> + 'a
pub fn iter(&self) -> SoAHitIter<'_, HitN> ⓘ
pub fn iter_hits<'a>(&'a self) -> impl Iterator<Item = SoAHitRef<'_, HitN>> + 'a
pub fn len(&self) -> usize
pub unsafe fn as_hitnp(&mut self) -> RTCHitNp
Trait Implementations§
Source§impl SoAHit for HitN
impl SoAHit for HitN
fn normal(&self, i: usize) -> Vector3<f32>
fn set_normal(&mut self, i: usize, n: Vector3<f32>)
fn uv(&self, i: usize) -> (f32, f32)
fn set_u(&mut self, i: usize, u: f32)
fn set_v(&mut self, i: usize, v: f32)
fn prim_id(&self, i: usize) -> u32
fn set_prim_id(&mut self, i: usize, id: u32)
fn geom_id(&self, i: usize) -> u32
fn set_geom_id(&mut self, i: usize, id: u32)
fn inst_id(&self, i: usize) -> u32
fn set_inst_id(&mut self, i: usize, id: u32)
fn hit(&self, i: usize) -> bool
Auto Trait Implementations§
impl Freeze for HitN
impl RefUnwindSafe for HitN
impl Send for HitN
impl Sync for HitN
impl Unpin for HitN
impl UnwindSafe for HitN
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more