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<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>QUATRotAxisRad</TITLE>
9</HEAD>
10<BODY>
11<H1>QUATRotAxisRad</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17void C_QUATRotAxisRad ( Quaternion* r, const Vec* axis, f32 rad );
18
19#define QUATRotAxisRad  C_QUATRotAxisRad
20</pre></dd></dl>
21
22<H2>Arguments</H2>
23<TABLE class="arguments" border="1" >
24  <TBODY>
25    <TR>
26<TH>r</TH>
27<TD>Pointer to the resultant <A href="../structures/Quaternion_QuaternionPtr.html">quaternion</A>.</TD>
28    </TR>
29    <TR>
30<TH>axis</TH>
31<TD>Pointer to a <A href="../structures/Vec_VecPtr.html"><CODE>Vec</CODE></a> containing the components of the rotation axis. <em><strong><code>axis</code> </strong></em> does not have to be a unit vector.</TD>
32    </TR>
33    <TR>
34<TH>rad</TH>
35<TD>Rotation value in radians.&nbsp;Counter-clockwise rotation is positive.</TD>
36    </TR>
37  </TBODY>
38</TABLE>
39
40<H2>Return Values</H2>
41<P>None.</P>
42
43<H2>Description</H2>
44<P>Sets a quaternion for rotation about an arbitrary axis whose ( x, y, z ) components are specified by <SPAN class="argument">axis</SPAN>. Amount of rotation is specified by <code><em><strong>rad</strong></em></code>. Counter-clockwise rotation is considered positive.</P>
45
46<H2>See Also</H2>
47<P class="reference">
48<A href="../structures/Quaternion_QuaternionPtr.html">Quaternion, QuaternionPtr</A>
49</P>
50
51<H2>Revision History</H2>
52<P>
532006/03/01 Initial version.<br>
54</P>
55
56<hr><p>CONFIDENTIAL</p></body>
57</HTML>