from_path_ends#

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

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

Parameters:
points

Two or more orientations 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 orientations to return between each point along the path given by points. Default is 100.

Returns:
path

Regularly spaced orientations along the path.

Notes

This function traces the shortest path between points without considering symmetry. The concept of “shortest path” is not well-defined for orientations, which can define multiple symmetrically equivalent points with non-equivalent paths.

Examples using Orientation.from_path_ends#

Visualizing paths between rotations and vectors

Visualizing paths between rotations and vectors