Skip to main content

sphere

Function sphere 

Source
pub fn sphere(
    points: &[Point],
    options: &FitOptions<'_, Sphere>,
    tol: Tolerances,
) -> OgeomResult<Fit<Sphere>>
Expand description

The sphere through points.

ยงErrors

As plane, with four points needed, or three with the radius fixed; refused where they lie on one plane, and with OgeomError::Range where the radius lands outside FitOptions::radius_range.