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>QUATScale</TITLE>
9</HEAD>
10<BODY>
11<H1>QUATScale</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15&nbsp;&nbsp;&nbsp; #include &lt;revolution/mtx.h&gt;
16
17void C_QUATScale ( const Quaternion* q, Quaternion* r, f32 scale );
18void PSQUATScale ( const Quaternion* q, Quaternion* r, f32 scale );
19
20#define QUATScale C_QUATScale // for debug build
21#define QUATScale PSQUATScale // for nondebug build
22</pre></dd></dl>
23
24<H2>Arguments</H2>
25<TABLE class="arguments" border="1" >
26  <TBODY>
27    <TR>
28<TH>p</TH>
29<TD>Pointer to the <A href="../structures/Quaternion_QuaternionPtr.html">quaternion</A> to be scaled</TD>
30    </TR>
31    <TR>
32<TH>r</TH>
33<TD>Pointer to the resultant <A href="../structures/Quaternion_QuaternionPtr.html">quaternion</A>. The result of scaling <SPAN class="argument">p</SPAN> is entered. Acceptable if <SPAN class="argument">r</SPAN> = <SPAN class="argument">p</SPAN>.</TD>
34    </TR>
35    <TR>
36<TH><STRONG><EM><CODE>scale</CODE></EM></STRONG></TH>
37<TD>Scale value in floating point number.</TD>
38    </TR>
39  </TBODY>
40</TABLE>
41
42<H2>Return Values</H2>
43<P>None.</P>
44
45<H2>Description</H2>
46<P>Multiplies a quaternion by a scalar value.</P>
47<P>During a debug build, <CODE>QUATScale</CODE> is parsed as <CODE>C_QUATScale</CODE>, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, <CODE>PSQUATScale</CODE>, will be automatically substituted. You can also call <CODE>C_QUATScale</CODE> and <CODE>PSQUATScale</CODE> explicitly.</P>
48
49<H2>See Also</H2>
50<P class="reference">
51<A href="../structures/Quaternion_QuaternionPtr.html">Quaternion, QuaternionPtr</A>
52</P>
53
54<H2>Revision History</H2>
55<P>
562006/03/01 Initial version.<br>
57</P>
58
59<hr><p>CONFIDENTIAL</p></body>
60</HTML>