netsse.tools.misc_func.ang_diff#
- netsse.tools.misc_func.ang_diff(alpha, beta, unit='deg')#
Calculates the signed difference between two angles.
- Parameters:
- Returns:
delta – The output difference between alpha and beta in the range [-180,180] degrees.
Note
This function subtracts
alpha
frombeta
, i.e., computes the signed differencebeta-alpha
, taking into account the circularity at 360 degrees.- Return type:
float or array_like
See also
Example
>>> delta = ang_diff(alpha, beta, unit='deg')