GID_ROTATE_ANGLE_FROM_ARGUMENT

4/8/2010

You can convert between raw angles and radians by using this macro.

Syntax

GID_ROTATE_ANGLE_FROM_ARGUMENT(
    Arg
)

Parameters

  • Arg
    The argument to be converted.

Remarks

To convert the raw angle to radians, divide the raw angle by 32768, then multiply that value by 360/32768. 32768 units represent one full circle.

The raw angle is given relative to the current system orientation (agnostic of whether the device is in landscape or portrait mode). When the system rotates, the gesture directions and angles adjust to match the rotation.

Requirements

Header Gesture.h

See Also

Other Resources

Gesture Reference (DTK)