classfquat.html

来自「VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。」· HTML 代码 · 共 200 行

HTML
200
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>vtdata library: FQuat Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.5 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>FQuat Class Reference</h1><!-- doxytag: class="FQuat" --><a href="classFQuat-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ab9cf977c685259954476b8a5f8ae582"></a><!-- doxytag: member="FQuat::FQuat" ref="ab9cf977c685259954476b8a5f8ae582" args="(float qx, float qy, float qz, float qw)" -->&nbsp;</td><td class="memItemRight" valign="bottom"><b>FQuat</b> (float qx, float qy, float qz, float qw)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b29a9e50425274434ff1f17e3670c6f8"></a><!-- doxytag: member="FQuat::FQuat" ref="b29a9e50425274434ff1f17e3670c6f8" args="(const FQuat &amp;q)" -->&nbsp;</td><td class="memItemRight" valign="bottom"><b>FQuat</b> (const <a class="el" href="classFQuat.html">FQuat</a> &amp;q)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bdf94db3895da81512f176066d8b9f85"></a><!-- doxytag: member="FQuat::FQuat" ref="bdf94db3895da81512f176066d8b9f85" args="(const FPoint3 &amp;axis, float angle)" -->&nbsp;</td><td class="memItemRight" valign="bottom"><b>FQuat</b> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;axis, float angle)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="99712cfce3529b5479ca47ea92742879"></a><!-- doxytag: member="FQuat::Init" ref="99712cfce3529b5479ca47ea92742879" args="()" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Init</b> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="34b94b51c360a6f9d1138db67e196043"></a><!-- doxytag: member="FQuat::Set" ref="34b94b51c360a6f9d1138db67e196043" args="(float qx, float qy, float qz, float qw)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Set</b> (float qx, float qy, float qz, float qw)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFQuat.html#c575b12d654a68337c2bba40143848d9">SetFromMatrix</a> (const <a class="el" href="classFMatrix3.html">FMatrix3</a> &amp;matrix)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2501b653b37333c49ea20c252c5474f5"></a><!-- doxytag: member="FQuat::SetFromVectors" ref="2501b653b37333c49ea20c252c5474f5" args="(const FPoint3 &amp;forward, const FPoint3 &amp;up)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>SetFromVectors</b> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;forward, const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;up)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a479e80c48a696067087182e5a1a13cb"></a><!-- doxytag: member="FQuat::SetFromVector" ref="a479e80c48a696067087182e5a1a13cb" args="(const FPoint3 &amp;direction)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>SetFromVector</b> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;direction)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a4e426d3ab8c0ded9550241477503c9"></a><!-- doxytag: member="FQuat::AxisAngle" ref="0a4e426d3ab8c0ded9550241477503c9" args="(const FPoint3 &amp;axis, float angle)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>AxisAngle</b> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;axis, float angle)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFQuat.html#36340fda30ce5eed1310cc7b248ac9b9">GetMatrix</a> (<a class="el" href="classFMatrix3.html">FMatrix3</a> &amp;matrix) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFQuat.html#4a7d635af45faaaecb308d759c081cf8">Slerp</a> (const <a class="el" href="classFQuat.html">FQuat</a> &amp;from, const <a class="el" href="classFQuat.html">FQuat</a> &amp;to, double f)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1328ff41890e78056fd7e9dbec7ee2cd"></a><!-- doxytag: member="FQuat::LengthSquared" ref="1328ff41890e78056fd7e9dbec7ee2cd" args="() const " -->float&nbsp;</td><td class="memItemRight" valign="bottom"><b>LengthSquared</b> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="354fb8938cd1eb77d5dd2df81f85facf"></a><!-- doxytag: member="FQuat::Inverse" ref="354fb8938cd1eb77d5dd2df81f85facf" args="() const " -->const <a class="el" href="classFQuat.html">FQuat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>Inverse</b> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88db48c7b21cad06c8a2af16073424c1"></a><!-- doxytag: member="FQuat::Invert" ref="88db48c7b21cad06c8a2af16073424c1" args="()" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Invert</b> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5f7f514f3353cb49109600d4fec8011"></a><!-- doxytag: member="FQuat::operator *" ref="a5f7f514f3353cb49109600d4fec8011" args="(const FQuat &amp;q) const " -->const <a class="el" href="classFQuat.html">FQuat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator *</b> (const <a class="el" href="classFQuat.html">FQuat</a> &amp;q) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2f2dd54bd04c184371dd5aca748443f4"></a><!-- doxytag: member="FQuat::operator *=" ref="2f2dd54bd04c184371dd5aca748443f4" args="(const FQuat &amp;q)" --><a class="el" href="classFQuat.html">FQuat</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator *=</b> (const <a class="el" href="classFQuat.html">FQuat</a> &amp;q)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c9faa33fe8985ce3985e02f403ca8ef0"></a><!-- doxytag: member="FQuat::operator/" ref="c9faa33fe8985ce3985e02f403ca8ef0" args="(const FQuat &amp;q) const " -->const <a class="el" href="classFQuat.html">FQuat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator/</b> (const <a class="el" href="classFQuat.html">FQuat</a> &amp;q) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ba0e28247c2e4dd95266c416598a5edd"></a><!-- doxytag: member="FQuat::operator/=" ref="ba0e28247c2e4dd95266c416598a5edd" args="(const FQuat &amp;q)" --><a class="el" href="classFQuat.html">FQuat</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator/=</b> (const <a class="el" href="classFQuat.html">FQuat</a> &amp;q)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef4eb15a2191446f0c317abcd6ce0b27"></a><!-- doxytag: member="FQuat::operator=" ref="ef4eb15a2191446f0c317abcd6ce0b27" args="(const FQuat &amp;q)" --><a class="el" href="classFQuat.html">FQuat</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classFQuat.html">FQuat</a> &amp;q)</td></tr><tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9dd4e461268c8034f5c8564e155c67a6"></a><!-- doxytag: member="FQuat::x" ref="9dd4e461268c8034f5c8564e155c67a6" args="" -->float&nbsp;</td><td class="memItemRight" valign="bottom"><b>x</b></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="415290769594460e2e485922904f345d"></a><!-- doxytag: member="FQuat::y" ref="415290769594460e2e485922904f345d" args="" -->float&nbsp;</td><td class="memItemRight" valign="bottom"><b>y</b></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fbade9e36a3f36d3d676c1b808451dd7"></a><!-- doxytag: member="FQuat::z" ref="fbade9e36a3f36d3d676c1b808451dd7" args="" -->float&nbsp;</td><td class="memItemRight" valign="bottom"><b>z</b></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f1290186a5d0b1ceab27f4e77c0c5d68"></a><!-- doxytag: member="FQuat::w" ref="f1290186a5d0b1ceab27f4e77c0c5d68" args="" -->float&nbsp;</td><td class="memItemRight" valign="bottom"><b>w</b></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Single-precision quaternion class. Quaternions are very useful for efficiently representing an orientations/rotation and operations such as interpolating between orientations. <p><hr><h2>Member Function Documentation</h2><a class="anchor" name="36340fda30ce5eed1310cc7b248ac9b9"></a><!-- doxytag: member="FQuat::GetMatrix" ref="36340fda30ce5eed1310cc7b248ac9b9" args="(FMatrix3 &amp;matrix) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void FQuat::GetMatrix           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classFMatrix3.html">FMatrix3</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>mat</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Get the equivalent matrix for this quaternion.     </td>  </tr></table><a class="anchor" name="c575b12d654a68337c2bba40143848d9"></a><!-- doxytag: member="FQuat::SetFromMatrix" ref="c575b12d654a68337c2bba40143848d9" args="(const FMatrix3 &amp;matrix)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void FQuat::SetFromMatrix           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classFMatrix3.html">FMatrix3</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>mat</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Set quaternion to be equivalent to specified matrix.     </td>  </tr></table><a class="anchor" name="4a7d635af45faaaecb308d759c081cf8"></a><!-- doxytag: member="FQuat::Slerp" ref="4a7d635af45faaaecb308d759c081cf8" args="(const FQuat &amp;from, const FQuat &amp;to, double f)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void FQuat::Slerp           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classFQuat.html">FQuat</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>from</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const <a class="el" href="classFQuat.html">FQuat</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>to</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap> <em>f</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Spherical Linear Interpolation. As f goes from 0 to 1, the quaternion goes from "from" to "to".<p>Reference: Shoemake at SIGGRAPH 89, See also: <a href="http://www.gamasutra.com/features/19980703/quaternions_01.htm">http://www.gamasutra.com/features/19980703/quaternions_01.htm</a>     </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:40:55 2008 for vtdata library by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?