RAIMAD

Function polar from raimad.helpers

def polar(arg: float, mod: float = 1) -> 'rai.typing.Point'
Construct an XY point from an argument and modulus.
Click to show code
def polar(arg: float, mod: float = 1) -> 'rai.typing.Point':
    """Construct an XY point from an argument and modulus."""
    return (
        math.cos(arg) * mod,
        math.sin(arg) * mod
        )