Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

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

Syntax

GID_ROTATE_ANGLE_TO_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)