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

get_angle_cartesian#

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

Compute the angle between two vectors in a cartesian coordinate system.

Parameters:

a, b (array-like with 3 floats) – The two directions to compute the angle between.

Returns:

angle – Angle between a and b in radians.

Return type:

float