19 """Line segment class. 23 * `p_init` (*type:* `list` or `numpy.array`): Line's starting point 24 * `p_target` (*type:* `list` or `numpy.array`): Line's ending point 27 if type(p_init) == list:
28 assert len(p_init) == 3,
'Initial segment point must have 3 elements' 30 elif type(p_init) == np.ndarray:
31 assert p_init.size == 3,
'Initial segment point must have 3 elements' 34 raise TypeError(
'Initial point is neither a list or an array')
36 if type(p_target) == list:
37 assert len(p_target) == 3,
'Final segment point must have 3 elements' 39 elif type(p_target) == np.ndarray:
40 assert p_target.size == 3,
'Final segment point must have 3 elements' 43 raise TypeError(
'Final point is neither a list or an array')
45 assert not np.array_equal(self.
_p_init, self.
_p_target),
'Initial and final points are equal' 48 """Interpolate the Bezier curve using the input parametric variable `u`. 52 * `u` (*type:* `float`): Curve parametric input in the interval `[0, 1]` 56 `numpy.array`: 3D point from the Bezier curve 63 """Compute the derivative of the line segment. 67 `numpy.array`: 3D derivative value from the Bezier curve 72 """Get length of the Bezier curve segment. 76 `float`: Length of the curve 81 """Compute tangent vector. 85 `numpy.array`: Tangent vector
def get_derivative(self, args)
def __init__(self, p_init, p_target)