skspatial.objects.Cylinder.length¶
- Cylinder.length() float64[source]¶
Return the length of the cylinder.
This is the length of the vector used to initialize the cylinder.
- Returns:
- np.float64
Length of the cylinder.
Examples
>>> from skspatial.objects import Cylinder
>>> Cylinder([0, 0, 0], [0, 0, 1], 1).length() np.float64(1.0)
>>> Cylinder([0, 0, 0], [0, 0, 2], 1).length() np.float64(2.0)
>>> Cylinder([0, 0, 0], [1, 1, 1], 1).length().round(3) np.float64(1.732)