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>QUATSquad</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">QUATSquad</H1> 12<H2 align="left">C Specification</H2> 13<BLOCKQUOTE><CODE><CODE>#include <revolution/mtx.h></CODE></CODE></BLOCKQUOTE> 14<BLOCKQUOTE><CODE><CODE>void C_QUATSquad (<BR> const Quaternion* <EM>p</EM>,<BR> const Quaternion* <EM>a</EM>,<BR> const Quaternion* <EM>b</EM>,<BR> const Quaternion* <EM>q</EM>,<BR> Quaternion* <EM>r</EM>,<BR> f32 <EM> t</EM> );<BR> <BR> #define QUATSquad C_QUATSquad<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 <CODE><A href="../structures/Quaternion_QuaternionPtr.html">Quaternion</A></CODE>.</TD> 22 </TR> 23 <TR> 24<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>a</EM></STRONG></CODE></TD> 25<TD width="520">Pointer to the first extra inner-quadrangle <CODE><A href="../structures/Quaternion_QuaternionPtr.html">Quaternion</A></CODE>.</TD> 26 </TR> 27 <TR> 28<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><em><strong><code>b</code></strong></em> </EM></STRONG></CODE></TD> 29<TD width="520">Pointer to the second extra inner-quadrangle <CODE><A href="../structures/Quaternion_QuaternionPtr.html">Quaternion</A></CODE>.</TD> 30 </TR> 31 <TR> 32<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>q</EM></STRONG></CODE></TD> 33<TD width="520">Pointer to the second <CODE><A href="../structures/Quaternion_QuaternionPtr.html">Quaternion</A></CODE>.</TD> 34 </TR> 35 <TR> 36<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>r</EM></STRONG></CODE></TD> 37<TD width="520">Pointer to resultant <CODE><A href="../structures/Quaternion_QuaternionPtr.html">Quaternion</A></CODE>. Contains the result of interpolation between <em><strong><code>p</code></strong></em> and <code><em><strong>q</strong></em></code>. Acceptable if <code><em><strong>r</strong></em> = </code>either of <code><strong><em>p</em></strong>,<em><strong>a</strong></em>,<em><strong>b</strong></em>,<em><strong>q</strong></em></code>.</TD> 38 </TR> 39 <TR> 40<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>t</EM></STRONG></CODE></TD> 41<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> 42 </TR> 43 </TBODY> 44</TABLE> 45</DIV> 46<H2 align="left">Return Values</H2> 47<P>None.</P> 48<H2 align="left">Description</H2> 49<P>Performs spherical 3D (Squad) interpolation on two quaternions. Two <CODE><A href="../structures/Quaternion_QuaternionPtr.html">quaternions</A></CODE> for special control (inner-quadrangles) are required to carry out this calculation. </P> 50 51<P></P> 52<H2 align="left">See Also</H2> 53<P align="left"><A href="../structures/Quaternion_QuaternionPtr.html"><CODE>Quaternion, QuaternionPtr, </CODE></A><CODE><A href="QUATLerp.html">QUATLerp</A><BR> <A href="QUATSlerp.html">QUATSlerp</A></CODE></P> 54<H2>Revision History</H2> 55<P>2006/03/01 Initial version.</P> 56<hr> 57<P>CONFIDENTIAL</p> 58</BODY> 59</HTML>