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>QUATLerp</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15 #include <revolution/mtx.h> 16 17void C_QUATLerp ( 18 const Quaternion* p, 19 const Quaternion* q, 20 Quaternion* r, 21 f32 t ); 22 23#define QUATLerp C_QUATLerp 24</pre></dd></dl> 25 26<H2>Arguments</H2> 27<TABLE class="arguments" border="1" > 28 <TBODY> 29 <TR> 30<TH>p</TH> 31<TD>Pointer to the first <code><a href="../Structures/Quaternion_QuaternionPtr.html">Quaternion</a></code>.</TD> 32 </TR> 33 <TR> 34<TH>q</TH> 35<TD>Pointer to the second <a href="../Structures/Quaternion_QuaternionPtr.html"><code>Quaternion</code></a>.</TD> 36 </TR> 37 <TR> 38<TH>r</TH> 39<TD>Pointer to the resultant <A href="../structures/Quaternion_QuaternionPtr.html"><CODE>Quaternion</CODE></A>. Contains the result of interpolating between <SPAN class="argument">p</SPAN> and <SPAN class="argument">q</SPAN>. Acceptable if <SPAN class="argument">r</SPAN> = <SPAN class="argument">p</SPAN> or <SPAN class="argument">r</SPAN> = <SPAN class="argument">q</SPAN>.</TD> 40 </TR> 41 <TR> 42<TH>t</TH> 43<TD>Interpolation parameter. If <SPAN class="argument">t</SPAN> = 0.0, the result becomes equal to <SPAN class="argument">p</SPAN>. If <SPAN class="argument">t</SPAN> = 1.0, the result becomes equal to <SPAN class="argument">q</SPAN>.</TD> 44 </TR> 45 </TBODY> 46</TABLE> 47 48<H2>Return Values</H2> 49<P>None.</P> 50 51<H2>Description</H2> 52<P>Performs linear interpolation on two quaternions.</P> 53 54<H2>See Also</H2> 55<P class="reference"> 56<A href="../structures/Quaternion_QuaternionPtr.html">Quaternion, QuaternionPtr</A>, <A href="QUATSlerp.html">QUATSlerp</A>, <A href="QUATSquad.html">QUATSquad</A> 57</P> 58 59<H2>Revision History</H2> 60<P> 612006/03/01 Initial version.<br> 62</P> 63 64<hr><p>CONFIDENTIAL</p></body> 65</HTML>