pub struct SphereTraceResult {
pub hit: bool,
pub position: [f64; 3],
pub t: f64,
pub iterations: usize,
}Expand description
Sphere tracing (ray marching) result.
Fields§
§hit: boolWhether the ray hit the surface.
position: [f64; 3]Position of the hit point (if hit).
t: f64Distance traveled along the ray.
iterations: usizeNumber of iterations used.
Auto Trait Implementations§
impl Freeze for SphereTraceResult
impl RefUnwindSafe for SphereTraceResult
impl Send for SphereTraceResult
impl Sync for SphereTraceResult
impl Unpin for SphereTraceResult
impl UnsafeUnpin for SphereTraceResult
impl UnwindSafe for SphereTraceResult
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> 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