pub struct ClosestPoint {
pub position: [f32; 3],
pub face: u32,
pub uv: [f32; 2],
pub distance: f32,
pub signed_distance: Option<f32>,
pub normal: [f32; 3],
}Expand description
Result of LimitEvaluator::closest_point.
Fields§
§position: [f32; 3]The foot point on the limit surface.
face: u32The refined quad of the closest point.
uv: [f32; 2]In-quad (u, v) of the closest point
(position == eval(face, uv)).
distance: f32Euclidean distance from the query to position.
signed_distance: Option<f32>Signed variant of distance when sign is available (closed
surface), negative inside (the anti-winding-normal side).
normal: [f32; 3]The limit normal at the closest point (sector-correct at creases): the surface normal in quad interiors, the angle-weighted pseudonormal on seam edges/corners. Unit length, or zero if it degenerates (see the module docs).
Trait Implementations§
Source§impl Clone for ClosestPoint
impl Clone for ClosestPoint
Source§fn clone(&self) -> ClosestPoint
fn clone(&self) -> ClosestPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClosestPoint
Source§impl Debug for ClosestPoint
impl Debug for ClosestPoint
Source§impl PartialEq for ClosestPoint
impl PartialEq for ClosestPoint
Source§fn eq(&self, other: &ClosestPoint) -> bool
fn eq(&self, other: &ClosestPoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClosestPoint
Auto Trait Implementations§
impl Freeze for ClosestPoint
impl RefUnwindSafe for ClosestPoint
impl Send for ClosestPoint
impl Sync for ClosestPoint
impl Unpin for ClosestPoint
impl UnsafeUnpin for ClosestPoint
impl UnwindSafe for ClosestPoint
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