mne.transforms.angle_distance_between_rigid#

mne.transforms.angle_distance_between_rigid(a, b=None, *, angle_units='rad', distance_units='m')[source]#

Compute the angle and distance between two rigid transforms.

Parameters:
aarray, shape (…, 4, 4)

First rigid transform.

barray, shape (…, 4, 4) | None

Second rigid transform. If None, the identity transform is used.

angle_unitsstr

Units for the angle output, either “rad” or “deg”.

distance_unitsstr

Units for the distance output, either “m” or “mm”.

Returns:
anglesarray, shape (…)

The angles between the two transforms.

distancesarray, shape (…)

The distances between the two transforms.

Notes

New in v1.11.