[964] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
---|
| 3 | <title>FCollada: FMVector3 Class Reference</title> |
---|
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
| 6 | </head><body> |
---|
| 7 | <!-- Generated by Doxygen 1.4.6-NO --> |
---|
| 8 | <div class="tabs"> |
---|
| 9 | <ul> |
---|
| 10 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 11 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
| 12 | <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
---|
| 13 | <li id="current"><a href="classes.html"><span>Classes</span></a></li> |
---|
| 14 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 15 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 16 | </ul></div> |
---|
| 17 | <div class="tabs"> |
---|
| 18 | <ul> |
---|
| 19 | <li><a href="classes.html"><span>Alphabetical List</span></a></li> |
---|
| 20 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 21 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 22 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 23 | </ul></div> |
---|
| 24 | <h1>FMVector3 Class Reference<br> |
---|
| 25 | <small> |
---|
| 26 | [<a class="el" href="group___f_math.html">Mathematics Classes.</a>]</small> |
---|
| 27 | </h1><!-- doxytag: class="FMVector3" -->A 3 dimensional vector. |
---|
| 28 | <a href="#_details">More...</a> |
---|
| 29 | <p> |
---|
| 30 | <code>#include <<a class="el" href="_f_m_vector3_8h-source.html">FMVector3.h</a>></code> |
---|
| 31 | <p> |
---|
| 32 | <a href="class_f_m_vector3-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 33 | <tr><td></td></tr> |
---|
| 34 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 35 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7cee33ae8a870a7b7e14669fe599461b"></a><!-- doxytag: member="FMVector3::FMVector3" ref="7cee33ae8a870a7b7e14669fe599461b" args="()" --> |
---|
| 36 | </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#7cee33ae8a870a7b7e14669fe599461b">FMVector3</a> ()</td></tr> |
---|
| 37 | |
---|
| 38 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an empty <a class="el" href="class_f_m_vector3.html">FMVector3</a>. <br></td></tr> |
---|
| 39 | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#c4ebdd15669aea066ea5858b8a7deec5">FMVector3</a> (float _x, float _y, float _z)</td></tr> |
---|
| 40 | |
---|
| 41 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates the <a class="el" href="class_f_m_vector3.html">FMVector3</a> with the coordinates given. <a href="#c4ebdd15669aea066ea5858b8a7deec5"></a><br></td></tr> |
---|
| 42 | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#eda87a2ab88edfd0275cfa9dd196cdc3">FMVector3</a> (const float *source, uint32 startIndex=0)</td></tr> |
---|
| 43 | |
---|
| 44 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates the <a class="el" href="class_f_m_vector3.html">FMVector3</a> from a list of <code>floats</code>. <a href="#eda87a2ab88edfd0275cfa9dd196cdc3"></a><br></td></tr> |
---|
| 45 | <tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#bf0253baa904834ecfc026869f84f634">LengthSquared</a> () const </td></tr> |
---|
| 46 | |
---|
| 47 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the squared length. <a href="#bf0253baa904834ecfc026869f84f634"></a><br></td></tr> |
---|
| 48 | <tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#4afad998497b127652eb14048932dd36">Length</a> () const </td></tr> |
---|
| 49 | |
---|
| 50 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the length of the vector. <a href="#4afad998497b127652eb14048932dd36"></a><br></td></tr> |
---|
| 51 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1cf1c273e7462d8b7d07d5795e3abaab"></a><!-- doxytag: member="FMVector3::NormalizeIt" ref="1cf1c273e7462d8b7d07d5795e3abaab" args="()" --> |
---|
| 52 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#1cf1c273e7462d8b7d07d5795e3abaab">NormalizeIt</a> ()</td></tr> |
---|
| 53 | |
---|
| 54 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Normalize this <a class="el" href="class_f_m_vector3.html">FMVector3</a>. <br></td></tr> |
---|
| 55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_m_vector3.html">FMVector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#3d32f0806d047b4a4d34bac48842451b">Normalize</a> () const </td></tr> |
---|
| 56 | |
---|
| 57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a normalized <a class="el" href="class_f_m_vector3.html">FMVector3</a> with the same direction as this <a class="el" href="class_f_m_vector3.html">FMVector3</a>. <a href="#3d32f0806d047b4a4d34bac48842451b"></a><br></td></tr> |
---|
| 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#1fe5b378f95449817837dc0ecadf1ccf">Project</a> (const <a class="el" href="class_f_m_vector3.html">FMVector3</a> &unto)</td></tr> |
---|
| 59 | |
---|
| 60 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Project this <a class="el" href="class_f_m_vector3.html">FMVector3</a> onto another <a class="el" href="class_f_m_vector3.html">FMVector3</a>. <a href="#1fe5b378f95449817837dc0ecadf1ccf"></a><br></td></tr> |
---|
| 61 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_m_vector3.html">FMVector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#1c63bdb6360f380049acff25f61376a4">Projected</a> (const <a class="el" href="class_f_m_vector3.html">FMVector3</a> &unto)</td></tr> |
---|
| 62 | |
---|
| 63 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the projection of this <a class="el" href="class_f_m_vector3.html">FMVector3</a> onto another <a class="el" href="class_f_m_vector3.html">FMVector3</a>. <a href="#1c63bdb6360f380049acff25f61376a4"></a><br></td></tr> |
---|
| 64 | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#767d55b848c49e297cd683ca961fe138">operator float *</a> ()</td></tr> |
---|
| 65 | |
---|
| 66 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get this <a class="el" href="class_f_m_vector3.html">FMVector3</a> as an array of <code>floats</code>. <a href="#767d55b848c49e297cd683ca961fe138"></a><br></td></tr> |
---|
| 67 | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#a293da50dcc86b53884296e2ac8ca578">operator const float *</a> () const </td></tr> |
---|
| 68 | |
---|
| 69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get this <a class="el" href="class_f_m_vector3.html">FMVector3</a> as an array of <code>floats</code>. <a href="#a293da50dcc86b53884296e2ac8ca578"></a><br></td></tr> |
---|
| 70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_m_vector3.html">FMVector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#8b02f3c679758d31f1c5208c954cdbb9">operator=</a> (const float *v)</td></tr> |
---|
| 71 | |
---|
| 72 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Assign this <a class="el" href="class_f_m_vector3.html">FMVector3</a> to the given float array. <a href="#8b02f3c679758d31f1c5208c954cdbb9"></a><br></td></tr> |
---|
| 73 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#7ec4ab34895012f156add04613322c82">ComponentMinimum</a> (const <a class="el" href="class_f_m_vector3.html">FMVector3</a> &min)</td></tr> |
---|
| 74 | |
---|
| 75 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Update each component of this FMVector to the minimum of two FMVector3s. <a href="#7ec4ab34895012f156add04613322c82"></a><br></td></tr> |
---|
| 76 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#8682b0a239be2b72b85c3ff43b30d9e2">ComponentMaximum</a> (const <a class="el" href="class_f_m_vector3.html">FMVector3</a> &max)</td></tr> |
---|
| 77 | |
---|
| 78 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Update each component of this FMVector to the maximum of two FMVector3s. <a href="#8682b0a239be2b72b85c3ff43b30d9e2"></a><br></td></tr> |
---|
| 79 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#0bbd056f588ca19bcaec3b4b92ff8351">ComponentClamp</a> (const <a class="el" href="class_f_m_vector3.html">FMVector3</a> &min, const <a class="el" href="class_f_m_vector3.html">FMVector3</a> &max)</td></tr> |
---|
| 80 | |
---|
| 81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clamp each component of this FMVector by the corresponding components in the specified min and max <a class="el" href="class_f_m_vector3.html">FMVector3</a>. <a href="#0bbd056f588ca19bcaec3b4b92ff8351"></a><br></td></tr> |
---|
| 82 | <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> |
---|
| 83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b31613614892bba88807d31b2c9ee87e"></a><!-- doxytag: member="FMVector3::x" ref="b31613614892bba88807d31b2c9ee87e" args="" --> |
---|
| 84 | float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#b31613614892bba88807d31b2c9ee87e">x</a></td></tr> |
---|
| 85 | |
---|
| 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The first coordinate. <br></td></tr> |
---|
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6e8a45596a095d86205557d7231ef973"></a><!-- doxytag: member="FMVector3::y" ref="6e8a45596a095d86205557d7231ef973" args="" --> |
---|
| 88 | float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#6e8a45596a095d86205557d7231ef973">y</a></td></tr> |
---|
| 89 | |
---|
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The second coordinate. <br></td></tr> |
---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d912906661058ab718fb887ad67f5ad4"></a><!-- doxytag: member="FMVector3::z" ref="d912906661058ab718fb887ad67f5ad4" args="" --> |
---|
| 92 | float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#d912906661058ab718fb887ad67f5ad4">z</a></td></tr> |
---|
| 93 | |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The third coordinate. <br></td></tr> |
---|
| 95 | <tr><td colspan="2"><br><h2>Static Public Attributes</h2></td></tr> |
---|
| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="363010f82c60ec1d53a495de6284daf7"></a><!-- doxytag: member="FMVector3::XAxis" ref="363010f82c60ec1d53a495de6284daf7" args="" --> |
---|
| 97 | static const <a class="el" href="class_f_m_vector3.html">FMVector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#363010f82c60ec1d53a495de6284daf7">XAxis</a></td></tr> |
---|
| 98 | |
---|
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="class_f_m_vector3.html">FMVector3</a> representing the x axis. <br></td></tr> |
---|
| 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4e67235dec2d974161ecb965b6590555"></a><!-- doxytag: member="FMVector3::YAxis" ref="4e67235dec2d974161ecb965b6590555" args="" --> |
---|
| 101 | static const <a class="el" href="class_f_m_vector3.html">FMVector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#4e67235dec2d974161ecb965b6590555">YAxis</a></td></tr> |
---|
| 102 | |
---|
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="class_f_m_vector3.html">FMVector3</a> representing the y axis. <br></td></tr> |
---|
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3f1666b8e732a6480e3e3ac3416d0a22"></a><!-- doxytag: member="FMVector3::ZAxis" ref="3f1666b8e732a6480e3e3ac3416d0a22" args="" --> |
---|
| 105 | static const <a class="el" href="class_f_m_vector3.html">FMVector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#3f1666b8e732a6480e3e3ac3416d0a22">ZAxis</a></td></tr> |
---|
| 106 | |
---|
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="class_f_m_vector3.html">FMVector3</a> representing the z axis. <br></td></tr> |
---|
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18fc0513121c660cc2dc3f172d698adb"></a><!-- doxytag: member="FMVector3::Zero" ref="18fc0513121c660cc2dc3f172d698adb" args="" --> |
---|
| 109 | static const <a class="el" href="class_f_m_vector3.html">FMVector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#18fc0513121c660cc2dc3f172d698adb">Zero</a></td></tr> |
---|
| 110 | |
---|
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="class_f_m_vector3.html">FMVector3</a> representing zero. <br></td></tr> |
---|
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="886c355491c083e2664286caa7aa9ed8"></a><!-- doxytag: member="FMVector3::Origin" ref="886c355491c083e2664286caa7aa9ed8" args="" --> |
---|
| 113 | static const <a class="el" href="class_f_m_vector3.html">FMVector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_m_vector3.html#886c355491c083e2664286caa7aa9ed8">Origin</a></td></tr> |
---|
| 114 | |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="class_f_m_vector3.html">FMVector3</a> representing the origin. <br></td></tr> |
---|
| 116 | </table> |
---|
| 117 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 118 | A 3 dimensional vector. |
---|
| 119 | <p> |
---|
| 120 | Simple, non-optimized vector class: * is the dot-product, ^ is the cross-product. |
---|
| 121 | <p> |
---|
| 122 | <hr><h2>Constructor & Destructor Documentation</h2> |
---|
| 123 | <a class="anchor" name="c4ebdd15669aea066ea5858b8a7deec5"></a><!-- doxytag: member="FMVector3::FMVector3" ref="c4ebdd15669aea066ea5858b8a7deec5" args="(float _x, float _y, float _z)" --><p> |
---|
| 124 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 125 | <tr> |
---|
| 126 | <td class="mdRow"> |
---|
| 127 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 128 | <tr> |
---|
| 129 | <td class="md" nowrap valign="top">FMVector3::FMVector3 </td> |
---|
| 130 | <td class="md" valign="top">( </td> |
---|
| 131 | <td class="md" nowrap valign="top">float </td> |
---|
| 132 | <td class="mdname" nowrap> <em>_x</em>, </td> |
---|
| 133 | </tr> |
---|
| 134 | <tr> |
---|
| 135 | <td class="md" nowrap align="right"></td> |
---|
| 136 | <td class="md"></td> |
---|
| 137 | <td class="md" nowrap>float </td> |
---|
| 138 | <td class="mdname" nowrap> <em>_y</em>, </td> |
---|
| 139 | </tr> |
---|
| 140 | <tr> |
---|
| 141 | <td class="md" nowrap align="right"></td> |
---|
| 142 | <td class="md"></td> |
---|
| 143 | <td class="md" nowrap>float </td> |
---|
| 144 | <td class="mdname" nowrap> <em>_z</em></td> |
---|
| 145 | </tr> |
---|
| 146 | <tr> |
---|
| 147 | <td class="md"></td> |
---|
| 148 | <td class="md">) </td> |
---|
| 149 | <td class="md" colspan="2"><code> [inline]</code></td> |
---|
| 150 | </tr> |
---|
| 151 | </table> |
---|
| 152 | </td> |
---|
| 153 | </tr> |
---|
| 154 | </table> |
---|
| 155 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 156 | <tr> |
---|
| 157 | <td> |
---|
| 158 | |
---|
| 159 | </td> |
---|
| 160 | <td> |
---|
| 161 | |
---|
| 162 | <p> |
---|
| 163 | Creates the <a class="el" href="class_f_m_vector3.html">FMVector3</a> with the coordinates given. |
---|
| 164 | <p> |
---|
| 165 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 166 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 167 | <tr><td valign="top"></td><td valign="top"><em>_x</em> </td><td>The first coordinate. </td></tr> |
---|
| 168 | <tr><td valign="top"></td><td valign="top"><em>_y</em> </td><td>The second coordinate. </td></tr> |
---|
| 169 | <tr><td valign="top"></td><td valign="top"><em>_z</em> </td><td>The third coordinate. </td></tr> |
---|
| 170 | </table> |
---|
| 171 | </dl> |
---|
| 172 | </td> |
---|
| 173 | </tr> |
---|
| 174 | </table> |
---|
| 175 | <a class="anchor" name="eda87a2ab88edfd0275cfa9dd196cdc3"></a><!-- doxytag: member="FMVector3::FMVector3" ref="eda87a2ab88edfd0275cfa9dd196cdc3" args="(const float *source, uint32 startIndex=0)" --><p> |
---|
| 176 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 177 | <tr> |
---|
| 178 | <td class="mdRow"> |
---|
| 179 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 180 | <tr> |
---|
| 181 | <td class="md" nowrap valign="top">FMVector3::FMVector3 </td> |
---|
| 182 | <td class="md" valign="top">( </td> |
---|
| 183 | <td class="md" nowrap valign="top">const float * </td> |
---|
| 184 | <td class="mdname" nowrap> <em>source</em>, </td> |
---|
| 185 | </tr> |
---|
| 186 | <tr> |
---|
| 187 | <td class="md" nowrap align="right"></td> |
---|
| 188 | <td class="md"></td> |
---|
| 189 | <td class="md" nowrap>uint32 </td> |
---|
| 190 | <td class="mdname" nowrap> <em>startIndex</em> = <code>0</code></td> |
---|
| 191 | </tr> |
---|
| 192 | <tr> |
---|
| 193 | <td class="md"></td> |
---|
| 194 | <td class="md">) </td> |
---|
| 195 | <td class="md" colspan="2"></td> |
---|
| 196 | </tr> |
---|
| 197 | </table> |
---|
| 198 | </td> |
---|
| 199 | </tr> |
---|
| 200 | </table> |
---|
| 201 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 202 | <tr> |
---|
| 203 | <td> |
---|
| 204 | |
---|
| 205 | </td> |
---|
| 206 | <td> |
---|
| 207 | |
---|
| 208 | <p> |
---|
| 209 | Creates the <a class="el" href="class_f_m_vector3.html">FMVector3</a> from a list of <code>floats</code>. |
---|
| 210 | <p> |
---|
| 211 | It takes the first 3 <code>floats</code> starting from and including <em>startIndex</em> (0 indexing) in the array as the 3 coordinates. The first as the first coordinate, the second as the second, and the third as the third.<p> |
---|
| 212 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 213 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 214 | <tr><td valign="top"></td><td valign="top"><em>source</em> </td><td>The <code>float</code> array. </td></tr> |
---|
| 215 | <tr><td valign="top"></td><td valign="top"><em>startIndex</em> </td><td>The index of the first element. </td></tr> |
---|
| 216 | </table> |
---|
| 217 | </dl> |
---|
| 218 | </td> |
---|
| 219 | </tr> |
---|
| 220 | </table> |
---|
| 221 | <hr><h2>Member Function Documentation</h2> |
---|
| 222 | <a class="anchor" name="0bbd056f588ca19bcaec3b4b92ff8351"></a><!-- doxytag: member="FMVector3::ComponentClamp" ref="0bbd056f588ca19bcaec3b4b92ff8351" args="(const FMVector3 &min, const FMVector3 &max)" --><p> |
---|
| 223 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 224 | <tr> |
---|
| 225 | <td class="mdRow"> |
---|
| 226 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 227 | <tr> |
---|
| 228 | <td class="md" nowrap valign="top">void FMVector3::ComponentClamp </td> |
---|
| 229 | <td class="md" valign="top">( </td> |
---|
| 230 | <td class="md" nowrap valign="top">const <a class="el" href="class_f_m_vector3.html">FMVector3</a> & </td> |
---|
| 231 | <td class="mdname" nowrap> <em>min</em>, </td> |
---|
| 232 | </tr> |
---|
| 233 | <tr> |
---|
| 234 | <td class="md" nowrap align="right"></td> |
---|
| 235 | <td class="md"></td> |
---|
| 236 | <td class="md" nowrap>const <a class="el" href="class_f_m_vector3.html">FMVector3</a> & </td> |
---|
| 237 | <td class="mdname" nowrap> <em>max</em></td> |
---|
| 238 | </tr> |
---|
| 239 | <tr> |
---|
| 240 | <td class="md"></td> |
---|
| 241 | <td class="md">) </td> |
---|
| 242 | <td class="md" colspan="2"><code> [inline]</code></td> |
---|
| 243 | </tr> |
---|
| 244 | </table> |
---|
| 245 | </td> |
---|
| 246 | </tr> |
---|
| 247 | </table> |
---|
| 248 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 249 | <tr> |
---|
| 250 | <td> |
---|
| 251 | |
---|
| 252 | </td> |
---|
| 253 | <td> |
---|
| 254 | |
---|
| 255 | <p> |
---|
| 256 | Clamp each component of this FMVector by the corresponding components in the specified min and max <a class="el" href="class_f_m_vector3.html">FMVector3</a>. |
---|
| 257 | <p> |
---|
| 258 | Clamp refers to setting a value within a given range. If the value is lower than the minimum of the range, it is set to the minimum; same for the maximum.<p> |
---|
| 259 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 260 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 261 | <tr><td valign="top"></td><td valign="top"><em>min</em> </td><td>The FMVector to take the minimum values from. </td></tr> |
---|
| 262 | <tr><td valign="top"></td><td valign="top"><em>max</em> </td><td>The FMVector to take the maximum values from. </td></tr> |
---|
| 263 | </table> |
---|
| 264 | </dl> |
---|
| 265 | </td> |
---|
| 266 | </tr> |
---|
| 267 | </table> |
---|
| 268 | <a class="anchor" name="8682b0a239be2b72b85c3ff43b30d9e2"></a><!-- doxytag: member="FMVector3::ComponentMaximum" ref="8682b0a239be2b72b85c3ff43b30d9e2" args="(const FMVector3 &max)" --><p> |
---|
| 269 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 270 | <tr> |
---|
| 271 | <td class="mdRow"> |
---|
| 272 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 273 | <tr> |
---|
| 274 | <td class="md" nowrap valign="top">void FMVector3::ComponentMaximum </td> |
---|
| 275 | <td class="md" valign="top">( </td> |
---|
| 276 | <td class="md" nowrap valign="top">const <a class="el" href="class_f_m_vector3.html">FMVector3</a> & </td> |
---|
| 277 | <td class="mdname1" valign="top" nowrap> <em>max</em> </td> |
---|
| 278 | <td class="md" valign="top"> ) </td> |
---|
| 279 | <td class="md" nowrap><code> [inline]</code></td> |
---|
| 280 | </tr> |
---|
| 281 | </table> |
---|
| 282 | </td> |
---|
| 283 | </tr> |
---|
| 284 | </table> |
---|
| 285 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 286 | <tr> |
---|
| 287 | <td> |
---|
| 288 | |
---|
| 289 | </td> |
---|
| 290 | <td> |
---|
| 291 | |
---|
| 292 | <p> |
---|
| 293 | Update each component of this FMVector to the maximum of two FMVector3s. |
---|
| 294 | <p> |
---|
| 295 | Updates each of the three components to be the maximum of the current value and that of the corresponding value of the given <a class="el" href="class_f_m_vector3.html">FMVector3</a>.<p> |
---|
| 296 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 297 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 298 | <tr><td valign="top"></td><td valign="top"><em>max</em> </td><td>The FMVector to take values from. </td></tr> |
---|
| 299 | </table> |
---|
| 300 | </dl> |
---|
| 301 | </td> |
---|
| 302 | </tr> |
---|
| 303 | </table> |
---|
| 304 | <a class="anchor" name="7ec4ab34895012f156add04613322c82"></a><!-- doxytag: member="FMVector3::ComponentMinimum" ref="7ec4ab34895012f156add04613322c82" args="(const FMVector3 &min)" --><p> |
---|
| 305 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 306 | <tr> |
---|
| 307 | <td class="mdRow"> |
---|
| 308 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 309 | <tr> |
---|
| 310 | <td class="md" nowrap valign="top">void FMVector3::ComponentMinimum </td> |
---|
| 311 | <td class="md" valign="top">( </td> |
---|
| 312 | <td class="md" nowrap valign="top">const <a class="el" href="class_f_m_vector3.html">FMVector3</a> & </td> |
---|
| 313 | <td class="mdname1" valign="top" nowrap> <em>min</em> </td> |
---|
| 314 | <td class="md" valign="top"> ) </td> |
---|
| 315 | <td class="md" nowrap><code> [inline]</code></td> |
---|
| 316 | </tr> |
---|
| 317 | </table> |
---|
| 318 | </td> |
---|
| 319 | </tr> |
---|
| 320 | </table> |
---|
| 321 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 322 | <tr> |
---|
| 323 | <td> |
---|
| 324 | |
---|
| 325 | </td> |
---|
| 326 | <td> |
---|
| 327 | |
---|
| 328 | <p> |
---|
| 329 | Update each component of this FMVector to the minimum of two FMVector3s. |
---|
| 330 | <p> |
---|
| 331 | Updates each of the three components to be the minimum of the current value and that of the corresponding value of the given <a class="el" href="class_f_m_vector3.html">FMVector3</a>.<p> |
---|
| 332 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 333 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 334 | <tr><td valign="top"></td><td valign="top"><em>min</em> </td><td>The FMVector to take values from. </td></tr> |
---|
| 335 | </table> |
---|
| 336 | </dl> |
---|
| 337 | </td> |
---|
| 338 | </tr> |
---|
| 339 | </table> |
---|
| 340 | <a class="anchor" name="4afad998497b127652eb14048932dd36"></a><!-- doxytag: member="FMVector3::Length" ref="4afad998497b127652eb14048932dd36" args="() const " --><p> |
---|
| 341 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 342 | <tr> |
---|
| 343 | <td class="mdRow"> |
---|
| 344 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 345 | <tr> |
---|
| 346 | <td class="md" nowrap valign="top">float FMVector3::Length </td> |
---|
| 347 | <td class="md" valign="top">( </td> |
---|
| 348 | <td class="mdname1" valign="top" nowrap> </td> |
---|
| 349 | <td class="md" valign="top"> ) </td> |
---|
| 350 | <td class="md" nowrap> const<code> [inline]</code></td> |
---|
| 351 | </tr> |
---|
| 352 | </table> |
---|
| 353 | </td> |
---|
| 354 | </tr> |
---|
| 355 | </table> |
---|
| 356 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 357 | <tr> |
---|
| 358 | <td> |
---|
| 359 | |
---|
| 360 | </td> |
---|
| 361 | <td> |
---|
| 362 | |
---|
| 363 | <p> |
---|
| 364 | Retrieves the length of the vector. |
---|
| 365 | <p> |
---|
| 366 | <dl compact><dt><b>Returns:</b></dt><dd>The length of this <a class="el" href="class_f_m_vector3.html">FMVector3</a>. </dd></dl> |
---|
| 367 | </td> |
---|
| 368 | </tr> |
---|
| 369 | </table> |
---|
| 370 | <a class="anchor" name="bf0253baa904834ecfc026869f84f634"></a><!-- doxytag: member="FMVector3::LengthSquared" ref="bf0253baa904834ecfc026869f84f634" args="() const " --><p> |
---|
| 371 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 372 | <tr> |
---|
| 373 | <td class="mdRow"> |
---|
| 374 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 375 | <tr> |
---|
| 376 | <td class="md" nowrap valign="top">float FMVector3::LengthSquared </td> |
---|
| 377 | <td class="md" valign="top">( </td> |
---|
| 378 | <td class="mdname1" valign="top" nowrap> </td> |
---|
| 379 | <td class="md" valign="top"> ) </td> |
---|
| 380 | <td class="md" nowrap> const<code> [inline]</code></td> |
---|
| 381 | </tr> |
---|
| 382 | </table> |
---|
| 383 | </td> |
---|
| 384 | </tr> |
---|
| 385 | </table> |
---|
| 386 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 387 | <tr> |
---|
| 388 | <td> |
---|
| 389 | |
---|
| 390 | </td> |
---|
| 391 | <td> |
---|
| 392 | |
---|
| 393 | <p> |
---|
| 394 | Get the squared length. |
---|
| 395 | <p> |
---|
| 396 | <dl compact><dt><b>Returns:</b></dt><dd>The squared length of this <a class="el" href="class_f_m_vector3.html">FMVector3</a>. </dd></dl> |
---|
| 397 | </td> |
---|
| 398 | </tr> |
---|
| 399 | </table> |
---|
| 400 | <a class="anchor" name="3d32f0806d047b4a4d34bac48842451b"></a><!-- doxytag: member="FMVector3::Normalize" ref="3d32f0806d047b4a4d34bac48842451b" args="() const " --><p> |
---|
| 401 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 402 | <tr> |
---|
| 403 | <td class="mdRow"> |
---|
| 404 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 405 | <tr> |
---|
| 406 | <td class="md" nowrap valign="top"><a class="el" href="class_f_m_vector3.html">FMVector3</a> FMVector3::Normalize </td> |
---|
| 407 | <td class="md" valign="top">( </td> |
---|
| 408 | <td class="mdname1" valign="top" nowrap> </td> |
---|
| 409 | <td class="md" valign="top"> ) </td> |
---|
| 410 | <td class="md" nowrap> const<code> [inline]</code></td> |
---|
| 411 | </tr> |
---|
| 412 | </table> |
---|
| 413 | </td> |
---|
| 414 | </tr> |
---|
| 415 | </table> |
---|
| 416 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 417 | <tr> |
---|
| 418 | <td> |
---|
| 419 | |
---|
| 420 | </td> |
---|
| 421 | <td> |
---|
| 422 | |
---|
| 423 | <p> |
---|
| 424 | Get a normalized <a class="el" href="class_f_m_vector3.html">FMVector3</a> with the same direction as this <a class="el" href="class_f_m_vector3.html">FMVector3</a>. |
---|
| 425 | <p> |
---|
| 426 | <dl compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="class_f_m_vector3.html">FMVector3</a> with length 1 and same direction as this <a class="el" href="class_f_m_vector3.html">FMVector3</a>. </dd></dl> |
---|
| 427 | </td> |
---|
| 428 | </tr> |
---|
| 429 | </table> |
---|
| 430 | <a class="anchor" name="a293da50dcc86b53884296e2ac8ca578"></a><!-- doxytag: member="FMVector3::operator const float *" ref="a293da50dcc86b53884296e2ac8ca578" args="() const " --><p> |
---|
| 431 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 432 | <tr> |
---|
| 433 | <td class="mdRow"> |
---|
| 434 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 435 | <tr> |
---|
| 436 | <td class="md" nowrap valign="top">FMVector3::operator const float * </td> |
---|
| 437 | <td class="md" valign="top">( </td> |
---|
| 438 | <td class="mdname1" valign="top" nowrap> </td> |
---|
| 439 | <td class="md" valign="top"> ) </td> |
---|
| 440 | <td class="md" nowrap> const<code> [inline]</code></td> |
---|
| 441 | </tr> |
---|
| 442 | </table> |
---|
| 443 | </td> |
---|
| 444 | </tr> |
---|
| 445 | </table> |
---|
| 446 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 447 | <tr> |
---|
| 448 | <td> |
---|
| 449 | |
---|
| 450 | </td> |
---|
| 451 | <td> |
---|
| 452 | |
---|
| 453 | <p> |
---|
| 454 | Get this <a class="el" href="class_f_m_vector3.html">FMVector3</a> as an array of <code>floats</code>. |
---|
| 455 | <p> |
---|
| 456 | <dl compact><dt><b>Returns:</b></dt><dd>The <code>float</code> array. </dd></dl> |
---|
| 457 | </td> |
---|
| 458 | </tr> |
---|
| 459 | </table> |
---|
| 460 | <a class="anchor" name="767d55b848c49e297cd683ca961fe138"></a><!-- doxytag: member="FMVector3::operator float *" ref="767d55b848c49e297cd683ca961fe138" args="()" --><p> |
---|
| 461 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 462 | <tr> |
---|
| 463 | <td class="mdRow"> |
---|
| 464 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 465 | <tr> |
---|
| 466 | <td class="md" nowrap valign="top">FMVector3::operator float * </td> |
---|
| 467 | <td class="md" valign="top">( </td> |
---|
| 468 | <td class="mdname1" valign="top" nowrap> </td> |
---|
| 469 | <td class="md" valign="top"> ) </td> |
---|
| 470 | <td class="md" nowrap><code> [inline]</code></td> |
---|
| 471 | </tr> |
---|
| 472 | </table> |
---|
| 473 | </td> |
---|
| 474 | </tr> |
---|
| 475 | </table> |
---|
| 476 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 477 | <tr> |
---|
| 478 | <td> |
---|
| 479 | |
---|
| 480 | </td> |
---|
| 481 | <td> |
---|
| 482 | |
---|
| 483 | <p> |
---|
| 484 | Get this <a class="el" href="class_f_m_vector3.html">FMVector3</a> as an array of <code>floats</code>. |
---|
| 485 | <p> |
---|
| 486 | <dl compact><dt><b>Returns:</b></dt><dd>The <code>float</code> array. </dd></dl> |
---|
| 487 | </td> |
---|
| 488 | </tr> |
---|
| 489 | </table> |
---|
| 490 | <a class="anchor" name="8b02f3c679758d31f1c5208c954cdbb9"></a><!-- doxytag: member="FMVector3::operator=" ref="8b02f3c679758d31f1c5208c954cdbb9" args="(const float *v)" --><p> |
---|
| 491 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 492 | <tr> |
---|
| 493 | <td class="mdRow"> |
---|
| 494 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 495 | <tr> |
---|
| 496 | <td class="md" nowrap valign="top"><a class="el" href="class_f_m_vector3.html">FMVector3</a>& FMVector3::operator= </td> |
---|
| 497 | <td class="md" valign="top">( </td> |
---|
| 498 | <td class="md" nowrap valign="top">const float * </td> |
---|
| 499 | <td class="mdname1" valign="top" nowrap> <em>v</em> </td> |
---|
| 500 | <td class="md" valign="top"> ) </td> |
---|
| 501 | <td class="md" nowrap><code> [inline]</code></td> |
---|
| 502 | </tr> |
---|
| 503 | </table> |
---|
| 504 | </td> |
---|
| 505 | </tr> |
---|
| 506 | </table> |
---|
| 507 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 508 | <tr> |
---|
| 509 | <td> |
---|
| 510 | |
---|
| 511 | </td> |
---|
| 512 | <td> |
---|
| 513 | |
---|
| 514 | <p> |
---|
| 515 | Assign this <a class="el" href="class_f_m_vector3.html">FMVector3</a> to the given float array. |
---|
| 516 | <p> |
---|
| 517 | Assigns each coordinate of this <a class="el" href="class_f_m_vector3.html">FMVector3</a> to the elements in the <code>float</code> array. The first element to the first coordinate, the second to the second, and the third to the third. It returns this <a class="el" href="class_f_m_vector3.html">FMVector3</a>.<p> |
---|
| 518 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 519 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 520 | <tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>The <code>float</code> array to assign with. </td></tr> |
---|
| 521 | </table> |
---|
| 522 | </dl> |
---|
| 523 | <dl compact><dt><b>Returns:</b></dt><dd>This <a class="el" href="class_f_m_vector3.html">FMVector3</a>. </dd></dl> |
---|
| 524 | </td> |
---|
| 525 | </tr> |
---|
| 526 | </table> |
---|
| 527 | <a class="anchor" name="1fe5b378f95449817837dc0ecadf1ccf"></a><!-- doxytag: member="FMVector3::Project" ref="1fe5b378f95449817837dc0ecadf1ccf" args="(const FMVector3 &unto)" --><p> |
---|
| 528 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 529 | <tr> |
---|
| 530 | <td class="mdRow"> |
---|
| 531 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 532 | <tr> |
---|
| 533 | <td class="md" nowrap valign="top">void FMVector3::Project </td> |
---|
| 534 | <td class="md" valign="top">( </td> |
---|
| 535 | <td class="md" nowrap valign="top">const <a class="el" href="class_f_m_vector3.html">FMVector3</a> & </td> |
---|
| 536 | <td class="mdname1" valign="top" nowrap> <em>unto</em> </td> |
---|
| 537 | <td class="md" valign="top"> ) </td> |
---|
| 538 | <td class="md" nowrap><code> [inline]</code></td> |
---|
| 539 | </tr> |
---|
| 540 | </table> |
---|
| 541 | </td> |
---|
| 542 | </tr> |
---|
| 543 | </table> |
---|
| 544 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 545 | <tr> |
---|
| 546 | <td> |
---|
| 547 | |
---|
| 548 | </td> |
---|
| 549 | <td> |
---|
| 550 | |
---|
| 551 | <p> |
---|
| 552 | Project this <a class="el" href="class_f_m_vector3.html">FMVector3</a> onto another <a class="el" href="class_f_m_vector3.html">FMVector3</a>. |
---|
| 553 | <p> |
---|
| 554 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 555 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 556 | <tr><td valign="top"></td><td valign="top"><em>unto</em> </td><td>The <a class="el" href="class_f_m_vector3.html">FMVector3</a> to project onto. </td></tr> |
---|
| 557 | </table> |
---|
| 558 | </dl> |
---|
| 559 | </td> |
---|
| 560 | </tr> |
---|
| 561 | </table> |
---|
| 562 | <a class="anchor" name="1c63bdb6360f380049acff25f61376a4"></a><!-- doxytag: member="FMVector3::Projected" ref="1c63bdb6360f380049acff25f61376a4" args="(const FMVector3 &unto)" --><p> |
---|
| 563 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
---|
| 564 | <tr> |
---|
| 565 | <td class="mdRow"> |
---|
| 566 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
| 567 | <tr> |
---|
| 568 | <td class="md" nowrap valign="top"><a class="el" href="class_f_m_vector3.html">FMVector3</a> FMVector3::Projected </td> |
---|
| 569 | <td class="md" valign="top">( </td> |
---|
| 570 | <td class="md" nowrap valign="top">const <a class="el" href="class_f_m_vector3.html">FMVector3</a> & </td> |
---|
| 571 | <td class="mdname1" valign="top" nowrap> <em>unto</em> </td> |
---|
| 572 | <td class="md" valign="top"> ) </td> |
---|
| 573 | <td class="md" nowrap><code> [inline]</code></td> |
---|
| 574 | </tr> |
---|
| 575 | </table> |
---|
| 576 | </td> |
---|
| 577 | </tr> |
---|
| 578 | </table> |
---|
| 579 | <table cellspacing="5" cellpadding="0" border="0"> |
---|
| 580 | <tr> |
---|
| 581 | <td> |
---|
| 582 | |
---|
| 583 | </td> |
---|
| 584 | <td> |
---|
| 585 | |
---|
| 586 | <p> |
---|
| 587 | Get the projection of this <a class="el" href="class_f_m_vector3.html">FMVector3</a> onto another <a class="el" href="class_f_m_vector3.html">FMVector3</a>. |
---|
| 588 | <p> |
---|
| 589 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 590 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 591 | <tr><td valign="top"></td><td valign="top"><em>unto</em> </td><td>The <a class="el" href="class_f_m_vector3.html">FMVector3</a> to project onto. </td></tr> |
---|
| 592 | </table> |
---|
| 593 | </dl> |
---|
| 594 | <dl compact><dt><b>Returns:</b></dt><dd>The projected <a class="el" href="class_f_m_vector3.html">FMVector3</a>. </dd></dl> |
---|
| 595 | </td> |
---|
| 596 | </tr> |
---|
| 597 | </table> |
---|
| 598 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
| 599 | <li>FMath/<a class="el" href="_f_m_vector3_8h-source.html">FMVector3.h</a></ul> |
---|
| 600 | <hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:44 2006 for FCollada by |
---|
| 601 | <a href="http://www.doxygen.org/index.html"> |
---|
| 602 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address> |
---|
| 603 | </body> |
---|
| 604 | </html> |
---|