Sphere.fit#

classmethod Sphere.fit(positions)#

Fit an sphere to a set of 3D points.

Parameters:
positionsnp.ndarray

Point coordinates with shape (n x 3)

Returns:
Sphere

Class instance with fitted parameters.