Skip to main content

try_orientation_2d_with_tolerance

Function try_orientation_2d_with_tolerance 

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

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

ยงErrors

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

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

Returns GeometryError::NegativeTolerance when tolerance is negative.