#[repr(C)]pub struct b2SegmentDistanceResult {
pub closest1: b2Vec2,
pub closest2: b2Vec2,
pub fraction1: f32,
pub fraction2: f32,
pub distanceSquared: f32,
}Expand description
Result of computing the distance between two line segments
Fields§
§closest1: b2Vec2The closest point on the first segment
closest2: b2Vec2The closest point on the second segment
fraction1: f32The barycentric coordinate on the first segment
fraction2: f32The barycentric coordinate on the second segment
distanceSquared: f32The squared distance between the closest points
Trait Implementations§
Source§impl Clone for b2SegmentDistanceResult
impl Clone for b2SegmentDistanceResult
Source§fn clone(&self) -> b2SegmentDistanceResult
fn clone(&self) -> b2SegmentDistanceResult
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2SegmentDistanceResult
impl Debug for b2SegmentDistanceResult
impl Copy for b2SegmentDistanceResult
Auto Trait Implementations§
impl Freeze for b2SegmentDistanceResult
impl RefUnwindSafe for b2SegmentDistanceResult
impl Send for b2SegmentDistanceResult
impl Sync for b2SegmentDistanceResult
impl Unpin for b2SegmentDistanceResult
impl UnwindSafe for b2SegmentDistanceResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)