skspatial.objects.Cylinder.surface_area¶
- Cylinder.surface_area() float64 [source]¶
Return the total surface area of the cylinder.
This is the lateral surface area plus the area of the two circular caps.
- Returns:
- np.float64
Total surface area of the cylinder.
Examples
>>> from skspatial.objects import Cylinder
>>> Cylinder([0, 0, 0], [0, 0, 1], 1).surface_area().round(3) 12.566
>>> Cylinder([0, 0, 0], [0, 0, 1], 2).surface_area().round(3) 37.699
>>> Cylinder([0, 0, 0], [0, 0, 2], 2).surface_area().round(3) 50.265