skspatial.objects.Sphere.surface_area¶
- Sphere.surface_area() float [source]¶
Return the surface area of the sphere.
The surface area \(A\) of a sphere with radius \(r\) is
\[A = 4 \pi r ^ 2\]- Returns
- np.float64
Surface area of the sphere.
Examples
>>> from skspatial.objects import Sphere
>>> Sphere([0, 0, 0], 1).surface_area().round(2) 12.57
>>> Sphere([0, 0, 0], 2).surface_area().round(2) 50.27