1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 --></style> 48<title>nn::math::VEC4</title> 49 </head> 50 <body> 51<h1><CODE>nn::math::VEC4</CODE> Structure</h1> 52<h2>Syntax</h2> 53 <div class="section"> 54 <pre class="definition">struct VEC4 : public nn::math::VEC4_</pre> 55 </div> 56<h2>Description</h2> 57 <div class="section"> 58<p>A four-dimensional vector class.</p><!-- write here --></div> 59 <a name="typedef" id="typedef"> 60<h2><CODE>typedef</CODE> Definitions</h2> 61 <div class="section"> 62 <table class="members"> 63 <tr> 64 <td width="100" /> 65 <th> 66<a href="../../../nn/math/VEC4/self_type.html"><CODE>self_type</CODE></a> 67 </th> 68<td>This class's type.</td> 69 </tr> 70 <tr> 71 <td width="100" /> 72 <th> 73<a href="../../../nn/math/VEC4/value_type.html"><CODE>value_type</CODE></a> 74 </th> 75<td>The type of this class's elements.</td> 76 </tr> </table> 77 </div> 78 </a> <a name="constant" id="constant"> 79<h2>Member Constants</h2> 80 <div class="section"> 81 <table class="members"> 82 <tr> 83 <td width="100"> 84<span class="static_style" title="static">S</span> 85 </td> 86 <th> 87<span class="argument"><a href="../../../nn/math/VEC4/DIMENSION.html"><CODE>DIMENSION</CODE></a></span> 88 </th> 89<td>Number of dimensions.</td> 90 </tr> </table> 91 </div> 92 </a> <a name="function" id="function"> 93<h2>Member Functions</h2> 94 <div class="section"> 95 <table class="members"> 96 <tr> 97<th class="category" colspan="3">Creation</th> 98 </tr> 99 <tr> 100 <td width="100"> </td> 101 <th> 102<a href="../../../nn/math/VEC4/VEC4.html"><CODE>VEC4</CODE></a> 103 </th> 104<td>Constructor.</td> 105 </tr> 106 <tr> 107<th class="category" colspan="3">Conversions</th> 108 </tr> 109 <tr> 110 <td width="100"> </td> 111 <th> 112<a href="../../../nn/math/VEC4/operator f32 -2a.html"><CODE>operator f32 *</CODE></a> 113 </th> 114<td>Casts to an <CODE>f32</CODE>-type value.</td> 115 </tr> 116 <tr> 117 <td width="100"> </td> 118 <th> 119<a href="../../../nn/math/VEC4/operator const f32 -2a.html"><CODE>operator const f32 *</CODE></a> 120 </th> 121<td>Casts to an <CODE>f32</CODE>-type value.</td> 122 </tr> 123 <tr> 124<th class="category" colspan="3">Operators</th> 125 </tr> 126 <tr> 127 <td width="100"> </td> 128 <th> 129<a href="../../../nn/math/VEC4/Lerp.html"><CODE>Lerp</CODE></a> 130 </th> 131<td>Linearly interpolates between two vectors and sets the result.</td> 132 </tr> 133 <tr> 134 <td width="100"> </td> 135 <th> 136<a href="../../../nn/math/VEC4/Dot.html"><CODE>Dot</CODE></a> 137 </th> 138<td>Calculates the dot product with the specified vector.</td> 139 </tr> 140 <tr> 141 <td width="100"> </td> 142 <th> 143<a href="../../../nn/math/VEC4/LenSq.html"><CODE>LenSq</CODE></a> 144 </th> 145<td>Calculates the square of a vector length. Use of this function is not recommended because it may be removed in the future. We recommend that you use <CODE>LengthSquare</CODE> instead.</td> 146 </tr> 147 <tr> 148 <td width="100"> </td> 149 <th> 150<a href="../../../nn/math/VEC4/LengthSquare.html"><CODE>LengthSquare</CODE></a> 151 </th> 152<td>Calculates the square of a vector length.</td> 153 </tr> 154 <tr> 155 <td width="100"> </td> 156 <th> 157<a href="../../../nn/math/VEC4/Length.html"><CODE>Length</CODE></a> 158 </th> 159<td>Calculates the vector length.</td> 160 </tr> 161 <tr> 162 <td width="100"> </td> 163 <th> 164<a href="../../../nn/math/VEC4/Normalize.html"><CODE>Normalize</CODE></a> 165 </th> 166<td>Normalizes a vector.</td> 167 </tr> 168 <tr> 169 <td width="100"> </td> 170 <th> 171<a href="../../../nn/math/VEC4/SafeNormalize.html"><CODE>SafeNormalize</CODE></a> 172 </th> 173<td>Normalizes a vector. If normalization fails, sets the specified vector.</td> 174 </tr> 175 <tr> 176 <td width="100"> </td> 177 <th> 178<a href="../../../nn/math/VEC4/DistanceSquare.html"><CODE>DistanceSquare</CODE></a> 179 </th> 180<td>Calculates the squared distance to the specified vector.</td> 181 </tr> 182 <tr> 183 <td width="100"> </td> 184 <th> 185<a href="../../../nn/math/VEC4/Maximize.html"><CODE>Maximize</CODE></a> 186 </th> 187<td>Creates the vector formed by the smaller of each component of two input vectors.</td> 188 </tr> 189 <tr> 190 <td width="100"> </td> 191 <th> 192<a href="../../../nn/math/VEC4/Minimize.html"><CODE>Minimize</CODE></a> 193 </th> 194<td>Calculates the cross product of two vectors and sets the result.</td> 195 </tr> 196 <tr> 197<th class="category" colspan="3">Settings</th> 198 </tr> 199 <tr> 200 <td width="100"> </td> 201 <th> 202<a href="../../../nn/math/VEC4/Set.html"><CODE>Set</CODE></a> 203 </th> 204<td>Sets values individually.</td> 205 </tr> 206 <tr> 207<th class="category" colspan="3">Comparisons</th> 208 </tr> 209 <tr> 210 <td width="100"> </td> 211 <th> 212<a href="../../../nn/math/VEC4/operator==.html"><CODE>operator==</CODE></a> 213 </th> 214<td>Returns <CODE>true</CODE> if the values are equal.</td> 215 </tr> 216 <tr> 217 <td width="100"> </td> 218 <th> 219<a href="../../../nn/math/VEC4/operator!=.html"><CODE>operator!=</CODE></a> 220 </th> 221<td>Returns <CODE>true</CODE> if the values are not equal.</td> 222 </tr> 223 <tr> 224 <td width="100"> </td> 225 <th> 226<a href="../../../nn/math/VEC4/IsZero.html"><CODE>IsZero</CODE></a> 227 </th> 228<td>Returns <CODE>true</CODE> if this is a zero vector.</td> 229 </tr> 230 <tr> 231 <td width="100"> </td> 232 <th> 233<a href="../../../nn/math/VEC4/IsZeroWOne.html"><CODE>IsZeroWOne</CODE></a> 234 </th> 235<td>Returns <CODE>true</CODE> if this is a zero vector in homogeneous coordinates.</td> 236 </tr> 237 <tr> 238<th class="category" colspan="3">Other</th> 239 </tr> 240 <tr> 241 <td width="100"> 242<span class="static_style" title="static">S</span> </td> 243 <th> 244<a href="../../../nn/math/VEC4/Zero.html"><CODE>Zero</CODE></a> 245 </th> 246<td>The zero vector in homogeneous coordinates.</td> 247 </tr> 248 <tr> 249 <td width="100"> </td> 250 <th> 251<a href="../../../nn/math/VEC4/Report.html"><CODE>Report</CODE></a> 252 </th> 253<td>Outputs the state.</td> 254 </tr> </table> 255 </div> 256 </a> 257<h2>Inheritance Hierarchy</h2> 258 <div class="section"> 259<p class="hierarchy"><span>nn::math::VEC4_</span><br /> <b>nn::math::VEC4</b> 260 </p> 261 </div> 262<h2>Revision History</h2> 263 <div class="section"> 264 <dl class="history"> 265 <dt>2010/02/09</dt> 266<dd>Initial version.<br /> 267 </dd> 268 </dl> 269 </div> 270 <hr><p>CONFIDENTIAL</p></body> 271</html> 272