get_angle_cartesian#

diffsims.utils.vector_utils.get_angle_cartesian(a, b)[source]#

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

Parameters:
  • a (array-like with 3 floats) – The two directions to compute the angle between.

  • 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