Struct HitN

Source
pub struct HitN { /* private fields */ }

Implementations§

Source§

impl HitN

Source

pub fn new(n: usize) -> HitN

Source

pub fn any_hit(&self) -> bool

Source

pub fn hits<'a>(&'a self) -> impl Iterator<Item = bool> + 'a

Source

pub fn iter(&self) -> SoAHitIter<'_, HitN>

Source

pub fn iter_hits<'a>(&'a self) -> impl Iterator<Item = SoAHitRef<'_, HitN>> + 'a

Source

pub fn len(&self) -> usize

Source

pub unsafe fn as_hitnp(&mut self) -> RTCHitNp

Trait Implementations§

Source§

impl SoAHit for HitN

Source§

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

Source§

fn set_normal(&mut self, i: usize, n: Vector3<f32>)

Source§

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

Source§

fn set_u(&mut self, i: usize, u: f32)

Source§

fn set_v(&mut self, i: usize, v: f32)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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> 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.