pub struct BoxSdf {
pub half_extents: [f64; 3],
}Expand description
SDF for an axis-aligned box centred at the origin.
Fields§
§half_extents: [f64; 3]Half-extents along each axis.
Implementations§
Trait Implementations§
impl Copy for BoxSdf
Auto Trait Implementations§
impl Freeze for BoxSdf
impl RefUnwindSafe for BoxSdf
impl Send for BoxSdf
impl Sync for BoxSdf
impl Unpin for BoxSdf
impl UnsafeUnpin for BoxSdf
impl UnwindSafe for BoxSdf
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