pub struct DistanceQuery {
pub distance: f64,
pub normal: [f64; 3],
pub closest_point: [f64; 3],
pub is_inside: bool,
}Expand description
Query result for closest point / normal / distance.
Fields§
§distance: f64Signed distance at the query point.
normal: [f64; 3]Normal direction at the query point (normalised gradient).
closest_point: [f64; 3]Closest point on the surface (approximate, from gradient ray march).
is_inside: boolWhether the query point is inside the surface.
Trait Implementations§
Source§impl Clone for DistanceQuery
impl Clone for DistanceQuery
Source§fn clone(&self) -> DistanceQuery
fn clone(&self) -> DistanceQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DistanceQuery
impl RefUnwindSafe for DistanceQuery
impl Send for DistanceQuery
impl Sync for DistanceQuery
impl Unpin for DistanceQuery
impl UnsafeUnpin for DistanceQuery
impl UnwindSafe for DistanceQuery
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