1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
7<title>KPADReviseAcc</title>
8</head>
9
10<body>
11
12
13
14<h1>KPADReviseAcc</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/kpad.h&gt;</code></pre>
21  </dd>
22<dd><pre><CODE>f32 KPADReviseAcc( Vec *acc ) ;</CODE></pre>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27<p>
28<TABLE border="1">
29  <TBODY>
30    <TR>
31<TD><CODE><b><i>acc</i></b></CODE></TD>
32<TD>Pointer to the vector that will be subjected to the angular correction.</TD>
33    </TR>
34  </TBODY>
35</TABLE>
36</p>
37
38<h2>Return Values</h2>
39<p>The angle of counterclockwise rotation around the X-axis in the Nunchuk Motion Sensor coordinate system, as performed on the vector passed by the argument. In the unit of degrees.</p>
40
41<H2>Description</H2>
42<p>
43Corrects arbitrary vectors in the same way that the angular correction is performed when <a href="./KPADSetReviseMode.html"><code>KPADSetReviseMode</code></a> is set ON.<br><br>Note: If you want to determine the <CODE>sin</CODE> and the <CODE>cos</CODE> of the correction angle, you can convert the vectors (0,1,0), (0,0,1) and so on with <a href="./KPADReviseAcc.html"><code>KPADReviseAcc</code></a>.
44</p>
45
46<h2>See Also</h2>
47<p>
48<a href="./KPADSetReviseMode.html"><code>KPADSetReviseMode</code></a><br> <a href="./KPADGetReviseAngle.html"><code>KPADGetReviseAngle</code></a><br>
49</p>
50
51<H2>Revision History</H2>
52<P>
532007/05/21 Initial version. <BR>
54</P>
55
56</body>
57</html>
58