paya.runtime.data.Angle#

class Angle(*args, **kwargs)#

Inheritance

Angle Unit Unit float

unwindPositive()#
Returns

The unwound positive form of the angle.

Return type

Angle

unwindNegative()#
Returns

The unwound negative form of the angle.

Return type

Angle

unwind()#
Returns

This angle, unwound, and with the sign preserved.

Angle

unwindShortest()#
Returns

This angle, unwound and, if less than -180 or greater than 180, flipped.

Return type

Angle

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 0

  • positiveIndex/pi (int) – the integer value that should pick unwindPositive(); defaults to 1

  • negativeIndex/ni (int) – the integer value that should pick unwindNegative(); defaults to 2

Returns

The switched output.

Return type

Angle