from_path_ends#

classmethod Rotation.from_path_ends(points: Quaternion, closed: bool = False, steps: int = 100) Quaternion[source]#

Return quaternions tracing the shortest path between two or more consecutive points.

Parameters:
points

Two or more quaternions that define points along the path.

closed

Add a final trip from the last point back to the first, thus closing the loop. Default is False.

steps

Number of quaternions to return between each point along the path given by points. Default is 100.

Returns:
path

Regularly spaced quaternions along the path.

Examples using Rotation.from_path_ends#

Visualizing paths between rotations and vectors

Visualizing paths between rotations and vectors