pytransform3d.rotations.rotor_slerp#
- pytransform3d.rotations.rotor_slerp(start, end, t, shortest_path=False)[source]#
Spherical linear interpolation.
- Parameters:
- startarray-like, shape (4,)
Rotor: (a, b_yz, b_zx, b_xy)
- endarray-like, shape (4,)
Rotor: (a, b_yz, b_zx, b_xy)
- tfloat in [0, 1]
Position between start and end
- shortest_pathbool, optional (default: False)
Resolve sign ambiguity before interpolation to find the shortest path. The end rotor will be picked to be close to the start rotor.
- Returns:
- rotorarray, shape (4,)
Interpolated rotor: (a, b_yz, b_zx, b_xy)
See also
matrix_slerpSLERP for rotation matrices.
axis_angle_slerpSLERP for axis-angle representation.
quaternion_slerpSLERP for quaternions.
pytransform3d.transformations.pq_slerpSLERP for position + quaternion.