pub struct SweepEvent<F>where
F: Float,{
pub contour_id: u32,
pub point: Coordinate<F>,
pub is_subject: bool,
pub is_exterior_ring: bool,
/* private fields */
}
Fields§
§contour_id: u32
§point: Coordinate<F>
§is_subject: bool
§is_exterior_ring: bool
Implementations§
Source§impl<F> SweepEvent<F>where
F: Float,
impl<F> SweepEvent<F>where
F: Float,
pub fn new_rc( contour_id: u32, point: Coordinate<F>, left: bool, other_event: Weak<SweepEvent<F>>, is_subject: bool, is_exterior_ring: bool, ) -> Rc<SweepEvent<F>>
pub fn is_left(&self) -> bool
pub fn set_left(&self, left: bool)
pub fn get_other_event(&self) -> Option<Rc<SweepEvent<F>>>
pub fn set_other_event(&self, other_event: &Rc<SweepEvent<F>>)
pub fn get_prev_in_result(&self) -> Option<Rc<SweepEvent<F>>>
pub fn set_prev_in_result(&self, prev_in_result: &Rc<SweepEvent<F>>)
pub fn unset_prev_in_result(&self)
pub fn get_edge_type(&self) -> EdgeType
pub fn set_edge_type(&self, edge_type: EdgeType)
pub fn is_in_out(&self) -> bool
pub fn is_other_in_out(&self) -> bool
pub fn is_in_result(&self) -> bool
pub fn set_result_transition(&self, result_transition: ResultTransition)
pub fn get_result_transition(&self) -> ResultTransition
pub fn set_in_out(&self, in_out: bool, other_in_out: bool)
pub fn get_other_pos(&self) -> i32
pub fn set_other_pos(&self, other_pos: i32)
pub fn get_output_contour_id(&self) -> i32
pub fn set_output_contour_id(&self, output_contour_id: i32)
pub fn is_below(&self, p: Coordinate<F>) -> bool
pub fn is_above(&self, p: Coordinate<F>) -> bool
pub fn is_vertical(&self) -> bool
Sourcepub fn is_before(&self, other: &SweepEvent<F>) -> bool
pub fn is_before(&self, other: &SweepEvent<F>) -> bool
Helper function to avoid confusion by inverted ordering
Sourcepub fn is_after(&self, other: &SweepEvent<F>) -> bool
pub fn is_after(&self, other: &SweepEvent<F>) -> bool
Helper function to avoid confusion by inverted ordering
Trait Implementations§
Source§impl<F> Clone for SweepEvent<F>
impl<F> Clone for SweepEvent<F>
Source§fn clone(&self) -> SweepEvent<F>
fn clone(&self) -> SweepEvent<F>
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 moreSource§impl<F> Debug for SweepEvent<F>
impl<F> Debug for SweepEvent<F>
Source§impl<F> Ord for SweepEvent<F>where
F: Float,
impl<F> Ord for SweepEvent<F>where
F: Float,
Source§impl<F> PartialEq for SweepEvent<F>where
F: Float,
impl<F> PartialEq for SweepEvent<F>where
F: Float,
Source§impl<F> PartialOrd for SweepEvent<F>where
F: Float,
impl<F> PartialOrd for SweepEvent<F>where
F: Float,
impl<F> Eq for SweepEvent<F>where
F: Float,
Auto Trait Implementations§
impl<F> !Freeze for SweepEvent<F>
impl<F> !RefUnwindSafe for SweepEvent<F>
impl<F> !Send for SweepEvent<F>
impl<F> !Sync for SweepEvent<F>
impl<F> Unpin for SweepEvent<F>where
F: Unpin,
impl<F> !UnwindSafe for SweepEvent<F>
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