Check out the Hyperspy Workshop May 13-17, 2024 Online

get_angle_cartesian_vec#

pyxem.utils.vectors.get_angle_cartesian_vec(a, b)[source]#

Compute the angles between two lists of vectors in a cartesian coordinate system.

Parameters:

a, b (numpy.ndarray) – The two lists of directions to compute the angle between in Nx3 float arrays.

Returns:

angles – List of angles between a and b in radians.

Return type:

numpy.ndarray