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 a onto b.

Parameters:
Returns:

points_rot – rotated points.

Return type:

numpy.ndarray