Skip to main content

orientation_2d_with_tolerance

Function orientation_2d_with_tolerance 

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

Returns the winding order of three 2D points using an explicit area tolerance.

ยงErrors

Returns GeometryError::NonFiniteTolerance when tolerance is NaN or infinite.

Returns GeometryError::NegativeTolerance when tolerance is negative.