pub enum IntersectSegments {
INTERSECTED,
OVERLAPPED,
NOT_INTERSECTED,
SAME,
}Expand description
2つの線分の位置関係
Variants§
Implementations§
Source§impl IntersectSegments
impl IntersectSegments
Sourcepub fn intersected(self) -> bool
pub fn intersected(self) -> bool
INTERSECTEDかを判定
Sourcepub fn overlapped(self) -> bool
pub fn overlapped(self) -> bool
OVERLAPPEDかを判定
Sourcepub fn not_intersected(self) -> bool
pub fn not_intersected(self) -> bool
NOT_INTERSECTEDかを判定
Trait Implementations§
Source§impl Clone for IntersectSegments
impl Clone for IntersectSegments
Source§fn clone(&self) -> IntersectSegments
fn clone(&self) -> IntersectSegments
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 Debug for IntersectSegments
impl Debug for IntersectSegments
Source§impl Hash for IntersectSegments
impl Hash for IntersectSegments
Source§impl PartialEq for IntersectSegments
impl PartialEq for IntersectSegments
impl Copy for IntersectSegments
impl Eq for IntersectSegments
impl StructuralPartialEq for IntersectSegments
Auto Trait Implementations§
impl Freeze for IntersectSegments
impl RefUnwindSafe for IntersectSegments
impl Send for IntersectSegments
impl Sync for IntersectSegments
impl Unpin for IntersectSegments
impl UnwindSafe for IntersectSegments
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