KPADReviseAcc

Syntax

#include <revolution/kpad.h>

f32 KPADReviseAcc( Vec *acc );

Arguments

acc Pointer to the vector that will be subjected to angular correction.

Return Values

The angle of rotation of the vector passed in the argument, when rotated counterclockwise as defined when facing to the positive X-direction in the Nunchuk motion sensor's coordinate system. In units of degrees.

Description

This function corrects any user-specified vector in the same manner as the correction performed when KPADSetReviseMode is turned on.

Note: To get the sine or cosine of the correction angle, convert a (0,1,0) or (0,0,1) vector with the KPADReviseAcc function.

See Also

KPADSetReviseMode, KPADGetReviseAngle

Revision History

2007/05/21 Initial version.


CONFIDENTIAL