stko.vector_angle

stko.vector_angle(vector1, vector2)[source]

Returns the angle between two vectors in radians.

From: https://stackoverflow.com/a/13849249

Parameters:
  • vector1 (ndarray) – The first vector.

  • vector2 (ndarray) – The second vector.

Returns:

The angle between vector1 and vector2 in radians.

Return type:

float