pub enum SweepEvent {
LeftEndpoint {
x: f64,
y: f64,
seg_idx: usize,
},
RightEndpoint {
x: f64,
y: f64,
seg_idx: usize,
},
Intersection {
x: f64,
y: f64,
seg_a: usize,
seg_b: usize,
},
}Expand description
An event in the Bentley-Ottmann sweep line
Variants§
LeftEndpoint
Left endpoint of a segment (lower x) with segment index
RightEndpoint
Right endpoint of a segment with segment index
Intersection
Intersection of two segments
Trait Implementations§
Source§impl Clone for SweepEvent
impl Clone for SweepEvent
Source§fn clone(&self) -> SweepEvent
fn clone(&self) -> SweepEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SweepEvent
impl RefUnwindSafe for SweepEvent
impl Send for SweepEvent
impl Sync for SweepEvent
impl Unpin for SweepEvent
impl UnsafeUnpin for SweepEvent
impl UnwindSafe for SweepEvent
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