pub enum Intersection2D {
None,
Point([f64; 2]),
Overlap([f64; 2], [f64; 2]),
}Expand description
Result of intersecting two segments or lines in the plane.
Variants§
None
No common point.
Point([f64; 2])
A single common point.
Overlap([f64; 2], [f64; 2])
Collinear segments sharing a sub-segment from the first to the second point.
Trait Implementations§
Source§impl Clone for Intersection2D
impl Clone for Intersection2D
impl Copy for Intersection2D
Source§impl Debug for Intersection2D
impl Debug for Intersection2D
Source§impl PartialEq for Intersection2D
impl PartialEq for Intersection2D
impl StructuralPartialEq for Intersection2D
Auto Trait Implementations§
impl Freeze for Intersection2D
impl RefUnwindSafe for Intersection2D
impl Send for Intersection2D
impl Sync for Intersection2D
impl Unpin for Intersection2D
impl UnsafeUnpin for Intersection2D
impl UnwindSafe for Intersection2D
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