Skip to main content

try_orientation_2d

Function try_orientation_2d 

pub fn try_orientation_2d(
    a: Point2,
    b: Point2,
    c: Point2,
) -> Result<Orientation2, GeometryError>
Expand description

Returns the winding order of three 2D points with finite coordinates.

ยงErrors

Returns GeometryError::NonFiniteComponent when any input point contains a non-finite coordinate.