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>QUATLerp</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">QUATLerp</H1>
12<H2 align="left">C Specification</H2>
13<BLOCKQUOTE><CODE><CODE>#include &lt;revolution/mtx.h&gt;</CODE></CODE></BLOCKQUOTE>
14<BLOCKQUOTE><CODE><CODE>void C_QUATLerp (<BR> &nbsp;&nbsp;&nbsp; const Quaternion* <EM>p</EM>,<BR> &nbsp;&nbsp;&nbsp; const Quaternion* <EM>q</EM>,<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Quaternion* <EM>r</EM>,<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f32 <EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t</EM> );<BR> <BR> #define QUATLerp&nbsp; C_QUATLerp<BR></CODE></CODE></BLOCKQUOTE>
15<H2 align="left">Arguments</H2>
16<DIV align="left">
17<TABLE border="1" cellpadding="3" cellspacing="0.1">
18  <TBODY>
19    <TR>
20<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>p</EM></STRONG></CODE></TD>
21<TD width="520">Pointer to the first <A href="../structures/Quaternion_QuaternionPtr.html"><CODE>Quaternion</CODE></A>.</TD>
22    </TR>
23    <TR>
24<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>q</EM></STRONG></CODE></TD>
25<TD width="520">Pointer to the second <A href="../structures/Quaternion_QuaternionPtr.html"><CODE>Quaternion</CODE></A>.</TD>
26    </TR>
27    <TR>
28<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>r</EM></STRONG></CODE></TD>
29<TD width="520">Pointer to resultant <A href="../structures/Quaternion_QuaternionPtr.html"><CODE>Quaternion</CODE></A>.&nbsp;Contains the result of interpolation between <em><strong><code>p</code></strong></em> and <code><em><strong>q</strong></em></code>.&nbsp;Acceptable if <code><em><strong>r</strong></em> = <em><strong>p</strong></em></code> or <code><em><strong>r</strong></em> = <em><strong>q</strong></em></code>.</TD>
30    </TR>
31    <TR>
32<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>t</EM></STRONG></CODE></TD>
33<TD width="520">Interpolation parameter. If <code><strong><em>t </em></strong>=<strong><em></em>0.0</strong></code>, the result becomes equal to <code><em><strong>p</strong></em></code>. If <code><em><strong>t </strong></em>=<strong><em>1.0</em></strong></code>, the result becomes equal to <code><em><strong>q</strong></em></code>.</TD>
34    </TR>
35  </TBODY>
36</TABLE>
37</DIV>
38<H2 align="left">Return Values</H2>
39<P>None.</P>
40<H2 align="left">Description</H2>
41<P>Performs linear interpolation on two quaternions.</P>
42
43<P></P>
44<H2 align="left">See Also</H2>
45<P align="left"><A href="../structures/Quaternion_QuaternionPtr.html"><CODE>Quaternion, QuaternionPtr, </CODE></A></P>
46<P><CODE><A href="QUATSlerp.html">QUATSlerp</A>, <A href="QUATSquad.html">QUATSquad</A></CODE></P>
47<H2>Revision History</H2>
48<P>2006/03/01 Initial version.</P>
49<hr>
50<P>CONFIDENTIAL</p>
51</BODY>
52</HTML>