pub struct SegmentDistanceResult {
pub closest1: Vec2,
pub closest2: Vec2,
pub fraction1: f32,
pub fraction2: f32,
pub distance_squared: f32,
}Expand description
Result of computing the distance between two line segments. (b2SegmentDistanceResult)
Fields§
§closest1: Vec2The closest point on the first segment
closest2: Vec2The closest point on the second segment
fraction1: f32The barycentric coordinate on the first segment
fraction2: f32The barycentric coordinate on the second segment
distance_squared: f32The squared distance between the closest points
Trait Implementations§
Source§impl Clone for SegmentDistanceResult
impl Clone for SegmentDistanceResult
Source§fn clone(&self) -> SegmentDistanceResult
fn clone(&self) -> SegmentDistanceResult
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 SegmentDistanceResult
Source§impl Debug for SegmentDistanceResult
impl Debug for SegmentDistanceResult
Source§impl Default for SegmentDistanceResult
impl Default for SegmentDistanceResult
Source§fn default() -> SegmentDistanceResult
fn default() -> SegmentDistanceResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for SegmentDistanceResult
impl PartialEq for SegmentDistanceResult
impl StructuralPartialEq for SegmentDistanceResult
Auto Trait Implementations§
impl Freeze for SegmentDistanceResult
impl RefUnwindSafe for SegmentDistanceResult
impl Send for SegmentDistanceResult
impl Sync for SegmentDistanceResult
impl Unpin for SegmentDistanceResult
impl UnsafeUnpin for SegmentDistanceResult
impl UnwindSafe for SegmentDistanceResult
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