paya.runtime.data.Angle#
- class Angle(*args, **kwargs)#
Inheritance
- unwindShortest()#
- Returns
This angle, unwound and, if less than -180 or greater than 180, flipped.
- Return type
- unwindSwitch(switchSource, shortestIndex=0, positiveIndex=1, negativeIndex=2)#
Unwinds this angle using a mode picked using an integer value.
- Parameters
switchSource (int) – an integer value to pick an implementation
shortestIndex/si (int) – the integer value that should pick
unwindShortest()
; defaults to 0positiveIndex/pi (int) – the integer value that should pick
unwindPositive()
; defaults to 1negativeIndex/ni (int) – the integer value that should pick
unwindNegative()
; defaults to 2
- Returns
The switched output.
- Return type