Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

# magnum.Deg class

Degrees

## Static methods

def zero_init() -> Deg
Construct a zero value

## Special methods

def __add__(self, arg0: Deg, /) -> Deg
def __eq__(self, arg0: Deg, /) -> bool
Equality comparison
def __float__(self, /) -> float
Conversion to underlying type
def __ge__(self, arg0: Deg, /) -> bool
Greater than or equal comparison
def __gt__(self, arg0: Deg, /) -> bool
Greater than comparison
def __iadd__(self, arg0: Deg, /) -> Deg
Add and assign a value
def __imul__(self, arg0: float, /) -> Deg
Multiply with a number and assign
def __init__(self, arg0: Rad, /) -> None
def __init__(self, /) -> None
Default constructor
def __init__(self, arg0: float, /) -> None
Explicit conversion from a unitless type
def __isub__(self, arg0: Deg, /) -> Deg
Subtract and assign a value
def __itruediv__(self, arg0: float, /) -> Deg
Divide with a number and assign
def __le__(self, arg0: Deg, /) -> bool
Less than or equal comparison
def __lt__(self, arg0: Deg, /) -> bool
Less than comparison
def __mul__(self, arg0: float, /) -> Deg
Multiply with a number
def __ne__(self, arg0: Deg, /) -> bool
Non-equality comparison
def __neg__(self, /) -> Deg
Negated value
def __repr__(self, /) -> str
Object representation
def __sub__(self, arg0: Deg, /) -> Deg
Subtract a value
def __truediv__(self, arg0: float, /) -> Deg
Divide with a number
def __truediv__(self, arg0: Deg, /) -> float
Ratio of two values