skrobot.coordinates.geo.rotate_points
- skrobot.coordinates.geo.rotate_points(points, a, b)[source]
Rotate given points based on a starting and ending vector.
The points are rotated by the shortest-arc rotation that takes
aontob.- Parameters:
points (numpy.ndarray) – Input points. The shape should be (3, ) or (N, 3).
a (numpy.ndarray) – nonzero vector.
b (numpy.ndarray) – nonzero vector.
- Returns:
points_rot – rotated points.
- Return type: