Enum cp_library_rs::geometry::basic::Orientation
source · 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<Orientation> for Orientation
impl PartialEq<Orientation> for Orientation
source§fn eq(&self, other: &Orientation) -> bool
fn eq(&self, other: &Orientation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.