#[non_exhaustive]pub enum SegmentSegmentIntersection2 {
Disjoint,
Point {
point: Point2,
left_parameter: Scalar,
right_parameter: Scalar,
},
Overlap {
left_interval: Interval,
right_interval: Interval,
},
}Expand description
How two bounded planar segments relate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disjoint
The segments share no point.
Point
The segments meet at exactly one point.
Parameters are normalised to [0, 1] along each segment, so an
endpoint contact is visible as a parameter of exactly 0.0 or 1.0.
Fields
Overlap
The segments are collinear and share a positive-length span.
Trait Implementations§
Source§impl Clone for SegmentSegmentIntersection2
impl Clone for SegmentSegmentIntersection2
Source§fn clone(&self) -> SegmentSegmentIntersection2
fn clone(&self) -> SegmentSegmentIntersection2
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 SegmentSegmentIntersection2
Source§impl Debug for SegmentSegmentIntersection2
impl Debug for SegmentSegmentIntersection2
impl StructuralPartialEq for SegmentSegmentIntersection2
Auto Trait Implementations§
impl Freeze for SegmentSegmentIntersection2
impl RefUnwindSafe for SegmentSegmentIntersection2
impl Send for SegmentSegmentIntersection2
impl Sync for SegmentSegmentIntersection2
impl Unpin for SegmentSegmentIntersection2
impl UnsafeUnpin for SegmentSegmentIntersection2
impl UnwindSafe for SegmentSegmentIntersection2
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