pub enum Orientation {
CounterClockwise,
Clockwise,
OnlineBack,
OnlineFront,
OnSegment,
}Expand description
3点 O, A, B の位置関係
Variants§
CounterClockwise
O, A, B が反時計回りになる場合
B A ↑ ➚ O
Clockwise
O, A, B が時計回りになる場合
A B ↑ ➚ O
OnlineBack
B, O, A がこの順で同一直線上にある場合
B ← O → A
OnlineFront
O, A, B がこの順で同一直線上にある場合
O → A → B
OnSegment
B が線分 OA 上にある場合
O → B → A
Implementations§
Trait Implementations§
Source§impl Debug for Orientation
impl Debug for Orientation
Source§impl PartialEq for Orientation
impl PartialEq for Orientation
impl Eq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl Freeze for Orientation
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more