Skip to main content

inscribed_circle

Function inscribed_circle 

Source
pub fn inscribed_circle(
    points: &[Point2],
    tol: Tolerances,
) -> OgeomResult<Zone<Circle2>>
Expand description

The largest circle whose centre lies in the points’ convex hull and which holds none of them inside. Exact.

§Errors

OgeomError::Construction with fewer than three points or with them all on one line, and OgeomError::Domain for a point that is not finite.