pub struct TOI {
pub t: Fix128,
pub point: Vec3Fix,
pub normal: Vec3Fix,
}Expand description
Time of Impact result
Fields§
§t: Fix128Time of first impact [0, 1], where 0=start, 1=end of timestep
point: Vec3FixContact point at time of impact (world space)
normal: Vec3FixContact normal at time of impact
Trait Implementations§
impl Copy for TOI
impl Eq for TOI
impl StructuralPartialEq for TOI
Auto Trait Implementations§
impl Freeze for TOI
impl RefUnwindSafe for TOI
impl Send for TOI
impl Sync for TOI
impl Unpin for TOI
impl UnsafeUnpin for TOI
impl UnwindSafe for TOI
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more