hscmap.angle module

class hscmap.angle.Angle(radian)[source]

Bases: object

This class represents an angle.

Parameters:

radian (float) –

Unit

alias of Literal[‘degree’, ‘radian’]

property degree: float
property radian: float
classmethod from_degree(degree)[source]
Parameters:

degree (float) –

Return type:

Angle

classmethod from_radian(radian)[source]
Parameters:

radian (float) –

Return type:

Angle

classmethod converter(unit)[source]
Parameters:

unit (Literal['degree', 'radian']) –

Return type:

Tuple[Callable[[float], Angle], Callable[[Angle], float]]