from_path_ends#

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

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

Parameters:
points

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

Returns:
path

Regularly spaced misorientations 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 misorientations, which can define multiple symmetrically equivalent points with non-equivalent paths.

Examples using Misorientation.from_path_ends#

Visualizing paths between rotations and vectors

Visualizing paths between rotations and vectors