deg0to360

ssapy.utils.deg0to360(array_)[source][source]

Normalize angles in degrees to the range [0, 360].

Parameters:

array_ (int, float, or iterable):
  • A single angle in degrees (int or float).

  • An iterable (e.g., list, tuple, or numpy array) of angles in degrees.

Returns:

int, float, or list:
  • If a single angle is provided, returns the normalized angle in the range [0, 360].

  • If an iterable of angles is provided, returns a list of normalized angles in the range [0, 360].

Example:

deg0to360(370) -> 10 deg0to360([-10, 370, 720]) -> [350, 10, 0]