Enum Orientation2

2D orientation of a point relative to the directed line a -> b.

enum Orientation2 : byte { ... }

Orientation2.init is Orientation2.right. This deliberately preserves the non-neutral default of the v1 Orientation contract.

Enum members

NameDescription
collinear a, b, and c are collinear.
left c lies to the left of the directed line a -> b.
c lies to the right of the directed line a -> b.