setFromPoints
Computes the minimum bounding sphere for a list of points. If the optional optionalCenter is given, it is used as the sphere's center. Otherwise, the center of the axis-aligned bounding box encompassing the points is calculated.
Return
A reference to this sphere.
Parameters
points
A list of points in 3D space.
optionalCenter
The center of the sphere.