pub enum SegmentIntersection {
None,
Point {
point: Point2,
t1: f64,
t2: f64,
},
Overlap {
start: Point2,
end: Point2,
},
}Expand description
Result of a 2D segment-segment intersection test.
Variants§
None
No intersection.
Point
Segments intersect at a single point.
Fields
Overlap
Segments overlap (collinear) along a range.
Trait Implementations§
Source§impl Clone for SegmentIntersection
impl Clone for SegmentIntersection
Source§fn clone(&self) -> SegmentIntersection
fn clone(&self) -> SegmentIntersection
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 SegmentIntersection
Source§impl Debug for SegmentIntersection
impl Debug for SegmentIntersection
Source§impl PartialEq for SegmentIntersection
impl PartialEq for SegmentIntersection
impl StructuralPartialEq for SegmentIntersection
Auto Trait Implementations§
impl Freeze for SegmentIntersection
impl RefUnwindSafe for SegmentIntersection
impl Send for SegmentIntersection
impl Sync for SegmentIntersection
impl Unpin for SegmentIntersection
impl UnsafeUnpin for SegmentIntersection
impl UnwindSafe for SegmentIntersection
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