structPVRTVec2.html 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148
  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>PowerVR SDK</title>
  4. <link href="doxygen.css" rel="stylesheet" type="text/css">
  5. <link href="tabs.css" rel="stylesheet" type="text/css">
  6. <table width="100%">
  7. <tr>
  8. <td width="33%">
  9. <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
  10. </td>
  11. <td width="33%">
  12. <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
  13. </td>
  14. <td width="34%">
  15. <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
  16. </td>
  17. </tr>
  18. </table>
  19. <hr>
  20. </head><body>
  21. <!-- Generated by Doxygen 1.3.6 -->
  22. <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
  23. <h1>PVRTVec2 Struct Reference</h1><code>#include &lt;<a class="el" href="PVRTVector_8h-source.html">PVRTVector.h</a>&gt;</code>
  24. <p>
  25. <a href="structPVRTVec2-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
  26. <tr><td></td></tr>
  27. <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
  28. <tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a0">PVRTVec2</a> ()</td></tr>
  29. <tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a1">PVRTVec2</a> (VERTTYPE fX, VERTTYPE fY)</td></tr>
  30. <tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a2">PVRTVec2</a> (VERTTYPE fValue)</td></tr>
  31. <tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a3">PVRTVec2</a> (const VERTTYPE *pVec)</td></tr>
  32. <tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a4">PVRTVec2</a> (const <a class="el" href="structPVRTVec3.html">PVRTVec3</a> &amp;v3Vec)</td></tr>
  33. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a5">operator+</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs) const </td></tr>
  34. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a6">operator-</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs) const </td></tr>
  35. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a7">operator+=</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs)</td></tr>
  36. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a8">operator-=</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs)</td></tr>
  37. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a9">operator *</a> (const VERTTYPE &amp;rhs) const </td></tr>
  38. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a10">operator *=</a> (const VERTTYPE &amp;rhs)</td></tr>
  39. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a11">operator *=</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs)</td></tr>
  40. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a12">operator/</a> (const VERTTYPE &amp;rhs) const </td></tr>
  41. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a13">operator/=</a> (const VERTTYPE &amp;rhs)</td></tr>
  42. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a14">operator/=</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs)</td></tr>
  43. <tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a15">operator==</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs) const </td></tr>
  44. <tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a16">operator!=</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs) const </td></tr>
  45. <tr><td class="memItemLeft" nowrap align=right valign=top>VERTTYPE&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a17">lenSqr</a> () const </td></tr>
  46. <tr><td class="memItemLeft" nowrap align=right valign=top>VERTTYPE&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a18">length</a> () const </td></tr>
  47. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a19">normalize</a> ()</td></tr>
  48. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a20">normalized</a> () const </td></tr>
  49. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a21">rotated90</a> () const </td></tr>
  50. <tr><td class="memItemLeft" nowrap align=right valign=top>VERTTYPE&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a22">dot</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs) const </td></tr>
  51. <tr><td class="memItemLeft" nowrap align=right valign=top>VERTTYPE *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#a23">ptr</a> ()</td></tr>
  52. <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
  53. <tr><td class="memItemLeft" nowrap align=right valign=top>VERTTYPE&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#o0">x</a></td></tr>
  54. <tr><td class="memItemLeft" nowrap align=right valign=top>VERTTYPE&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#o1">y</a></td></tr>
  55. <tr><td colspan=2><br><h2>Friends</h2></td></tr>
  56. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#n0">operator-</a> (const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs)</td></tr>
  57. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#n1">operator *</a> (const VERTTYPE lhs, const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs)</td></tr>
  58. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structPVRTVec2.html">PVRTVec2</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTVec2.html#n2">operator/</a> (const VERTTYPE lhs, const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;rhs)</td></tr>
  59. </table>
  60. <hr><a name="_details"></a><h2>Detailed Description</h2>
  61. PVRTVec2 2 component vector
  62. <p>
  63. <hr><h2>Constructor &amp; Destructor Documentation</h2>
  64. <a class="anchor" name="a0" doxytag="PVRTVec2::PVRTVec2" ></a><p>
  65. <br><br><h3>PVRTVec2</h3><br><div>
  66. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  67. <tr>
  68. <td class="mdRow">
  69. <table cellpadding="0" cellspacing="0" border="0">
  70. <tr>
  71. <td class="md" nowrap valign="top"> PVRTVec2::PVRTVec2 </td>
  72. <td class="md" valign="top">(&nbsp;</td>
  73. <td class="mdname1" valign="top" nowrap> </td>
  74. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  75. <td class="md" nowrap><code> [inline]</code></td>
  76. </tr>
  77. </table>
  78. </td>
  79. </tr>
  80. </table>
  81. <table cellspacing=5 cellpadding=0 border=0>
  82. <tr>
  83. <td>
  84. &nbsp;
  85. </td>
  86. <td>
  87. <p>
  88. <dl compact><dt><b>Description:</b></dt><dd>Blank constructor. </dd></dl>
  89. </td>
  90. </tr>
  91. </table>
  92. <a class="anchor" name="a1" doxytag="PVRTVec2::PVRTVec2" ></a><p>
  93. <br><br><h3>PVRTVec2</h3><br><div>
  94. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  95. <tr>
  96. <td class="mdRow">
  97. <table cellpadding="0" cellspacing="0" border="0">
  98. <tr>
  99. <td class="md" nowrap valign="top"> PVRTVec2::PVRTVec2 </td>
  100. <td class="md" valign="top">(&nbsp;</td>
  101. <td class="md" nowrap valign="top">VERTTYPE&nbsp;</td>
  102. <td class="mdname" nowrap> <em>fX</em>, </td>
  103. </tr>
  104. <tr>
  105. <td class="md" nowrap align="right"></td>
  106. <td></td>
  107. <td class="md" nowrap>VERTTYPE&nbsp;</td>
  108. <td class="mdname" nowrap> <em>fY</em></td>
  109. </tr>
  110. <tr>
  111. <td></td>
  112. <td class="md">)&nbsp;</td>
  113. <td class="md" colspan="2"><code> [inline]</code></td>
  114. </tr>
  115. </table>
  116. </td>
  117. </tr>
  118. </table>
  119. <table cellspacing=5 cellpadding=0 border=0>
  120. <tr>
  121. <td>
  122. &nbsp;
  123. </td>
  124. <td>
  125. <p>
  126. <dl compact><dt><b>Inputs:</b></dt><dd>
  127. <table border="0" cellspacing="2" cellpadding="0">
  128. <tr><td valign=top><em>fX</em>&nbsp;</td><td>X component of vector </td></tr>
  129. <tr><td valign=top><em>fY</em>&nbsp;</td><td>Y component of vector </td></tr>
  130. </table>
  131. </dl>
  132. <dl compact><dt><b>Description:</b></dt><dd>Simple constructor from 2 values. </dd></dl>
  133. </td>
  134. </tr>
  135. </table>
  136. <a class="anchor" name="a2" doxytag="PVRTVec2::PVRTVec2" ></a><p>
  137. <br><br><h3>PVRTVec2</h3><br><div>
  138. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  139. <tr>
  140. <td class="mdRow">
  141. <table cellpadding="0" cellspacing="0" border="0">
  142. <tr>
  143. <td class="md" nowrap valign="top"> PVRTVec2::PVRTVec2 </td>
  144. <td class="md" valign="top">(&nbsp;</td>
  145. <td class="md" nowrap valign="top">VERTTYPE&nbsp;</td>
  146. <td class="mdname1" valign="top" nowrap> <em>fValue</em> </td>
  147. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  148. <td class="md" nowrap><code> [inline]</code></td>
  149. </tr>
  150. </table>
  151. </td>
  152. </tr>
  153. </table>
  154. <table cellspacing=5 cellpadding=0 border=0>
  155. <tr>
  156. <td>
  157. &nbsp;
  158. </td>
  159. <td>
  160. <p>
  161. <dl compact><dt><b>Inputs:</b></dt><dd>
  162. <table border="0" cellspacing="2" cellpadding="0">
  163. <tr><td valign=top><em>fValue</em>&nbsp;</td><td>a component value </td></tr>
  164. </table>
  165. </dl>
  166. <dl compact><dt><b>Description:</b></dt><dd>Constructor from a single value. </dd></dl>
  167. </td>
  168. </tr>
  169. </table>
  170. <a class="anchor" name="a3" doxytag="PVRTVec2::PVRTVec2" ></a><p>
  171. <br><br><h3>PVRTVec2</h3><br><div>
  172. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  173. <tr>
  174. <td class="mdRow">
  175. <table cellpadding="0" cellspacing="0" border="0">
  176. <tr>
  177. <td class="md" nowrap valign="top"> PVRTVec2::PVRTVec2 </td>
  178. <td class="md" valign="top">(&nbsp;</td>
  179. <td class="md" nowrap valign="top">const VERTTYPE *&nbsp;</td>
  180. <td class="mdname1" valign="top" nowrap> <em>pVec</em> </td>
  181. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  182. <td class="md" nowrap><code> [inline]</code></td>
  183. </tr>
  184. </table>
  185. </td>
  186. </tr>
  187. </table>
  188. <table cellspacing=5 cellpadding=0 border=0>
  189. <tr>
  190. <td>
  191. &nbsp;
  192. </td>
  193. <td>
  194. <p>
  195. <dl compact><dt><b>Inputs:</b></dt><dd>
  196. <table border="0" cellspacing="2" cellpadding="0">
  197. <tr><td valign=top><em>pVec</em>&nbsp;</td><td>an array </td></tr>
  198. </table>
  199. </dl>
  200. <dl compact><dt><b>Description:</b></dt><dd>Constructor from an array </dd></dl>
  201. </td>
  202. </tr>
  203. </table>
  204. <a class="anchor" name="a4" doxytag="PVRTVec2::PVRTVec2" ></a><p>
  205. <br><br><h3>PVRTVec2</h3><br><div>
  206. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  207. <tr>
  208. <td class="mdRow">
  209. <table cellpadding="0" cellspacing="0" border="0">
  210. <tr>
  211. <td class="md" nowrap valign="top"> PVRTVec2::PVRTVec2 </td>
  212. <td class="md" valign="top">(&nbsp;</td>
  213. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec3.html">PVRTVec3</a> &amp;&nbsp;</td>
  214. <td class="mdname1" valign="top" nowrap> <em>v3Vec</em> </td>
  215. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  216. <td class="md" nowrap></td>
  217. </tr>
  218. </table>
  219. </td>
  220. </tr>
  221. </table>
  222. <table cellspacing=5 cellpadding=0 border=0>
  223. <tr>
  224. <td>
  225. &nbsp;
  226. </td>
  227. <td>
  228. <p>
  229. <dl compact><dt><b>Inputs:</b></dt><dd>
  230. <table border="0" cellspacing="2" cellpadding="0">
  231. <tr><td valign=top><em>v3Vec</em>&nbsp;</td><td>a Vec3 </td></tr>
  232. </table>
  233. </dl>
  234. <dl compact><dt><b>Description:</b></dt><dd>Constructor from a Vec3 </dd></dl>
  235. </td>
  236. </tr>
  237. </table>
  238. <hr><h2>Member Function Documentation</h2>
  239. <a class="anchor" name="a22" doxytag="PVRTVec2::dot" ></a><p>
  240. <br><br><h3>dot</h3><br><div>
  241. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  242. <tr>
  243. <td class="mdRow">
  244. <table cellpadding="0" cellspacing="0" border="0">
  245. <tr>
  246. <td class="md" nowrap valign="top"> VERTTYPE PVRTVec2::dot </td>
  247. <td class="md" valign="top">(&nbsp;</td>
  248. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  249. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  250. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  251. <td class="md" nowrap> const<code> [inline]</code></td>
  252. </tr>
  253. </table>
  254. </td>
  255. </tr>
  256. </table>
  257. <table cellspacing=5 cellpadding=0 border=0>
  258. <tr>
  259. <td>
  260. &nbsp;
  261. </td>
  262. <td>
  263. <p>
  264. <dl compact><dt><b>Inputs:</b></dt><dd>
  265. <table border="0" cellspacing="2" cellpadding="0">
  266. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a single value </td></tr>
  267. </table>
  268. </dl>
  269. <dl compact><dt><b>Returns:</b></dt><dd>scalar product </dd></dl>
  270. <dl compact><dt><b>Description:</b></dt><dd>calculate the scalar product of two Vec3s </dd></dl>
  271. </td>
  272. </tr>
  273. </table>
  274. <a class="anchor" name="a18" doxytag="PVRTVec2::length" ></a><p>
  275. <br><br><h3>length</h3><br><div>
  276. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  277. <tr>
  278. <td class="mdRow">
  279. <table cellpadding="0" cellspacing="0" border="0">
  280. <tr>
  281. <td class="md" nowrap valign="top"> VERTTYPE PVRTVec2::length </td>
  282. <td class="md" valign="top">(&nbsp;</td>
  283. <td class="mdname1" valign="top" nowrap> </td>
  284. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  285. <td class="md" nowrap> const<code> [inline]</code></td>
  286. </tr>
  287. </table>
  288. </td>
  289. </tr>
  290. </table>
  291. <table cellspacing=5 cellpadding=0 border=0>
  292. <tr>
  293. <td>
  294. &nbsp;
  295. </td>
  296. <td>
  297. <p>
  298. <dl compact><dt><b>Returns:</b></dt><dd>the of the magnitude of the vector </dd></dl>
  299. <dl compact><dt><b>Description:</b></dt><dd>calculates the magnitude of the vector </dd></dl>
  300. </td>
  301. </tr>
  302. </table>
  303. <a class="anchor" name="a17" doxytag="PVRTVec2::lenSqr" ></a><p>
  304. <br><br><h3>lenSqr</h3><br><div>
  305. <table class="mdTable" width="100%" 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"> VERTTYPE PVRTVec2::lenSqr </td>
  311. <td class="md" valign="top">(&nbsp;</td>
  312. <td class="mdname1" valign="top" nowrap> </td>
  313. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  314. <td class="md" nowrap> const<code> [inline]</code></td>
  315. </tr>
  316. </table>
  317. </td>
  318. </tr>
  319. </table>
  320. <table cellspacing=5 cellpadding=0 border=0>
  321. <tr>
  322. <td>
  323. &nbsp;
  324. </td>
  325. <td>
  326. <p>
  327. <dl compact><dt><b>Returns:</b></dt><dd>the square of the magnitude of the vector </dd></dl>
  328. <dl compact><dt><b>Description:</b></dt><dd>calculates the square of the magnitude of the vector </dd></dl>
  329. </td>
  330. </tr>
  331. </table>
  332. <a class="anchor" name="a19" doxytag="PVRTVec2::normalize" ></a><p>
  333. <br><br><h3>normalize</h3><br><div>
  334. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  335. <tr>
  336. <td class="mdRow">
  337. <table cellpadding="0" cellspacing="0" border="0">
  338. <tr>
  339. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> PVRTVec2::normalize </td>
  340. <td class="md" valign="top">(&nbsp;</td>
  341. <td class="mdname1" valign="top" nowrap> </td>
  342. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  343. <td class="md" nowrap><code> [inline]</code></td>
  344. </tr>
  345. </table>
  346. </td>
  347. </tr>
  348. </table>
  349. <table cellspacing=5 cellpadding=0 border=0>
  350. <tr>
  351. <td>
  352. &nbsp;
  353. </td>
  354. <td>
  355. <p>
  356. <dl compact><dt><b>Returns:</b></dt><dd>the normalized value of the vector </dd></dl>
  357. <dl compact><dt><b>Description:</b></dt><dd>normalizes the vector </dd></dl>
  358. </td>
  359. </tr>
  360. </table>
  361. <a class="anchor" name="a20" doxytag="PVRTVec2::normalized" ></a><p>
  362. <br><br><h3>normalized</h3><br><div>
  363. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  364. <tr>
  365. <td class="mdRow">
  366. <table cellpadding="0" cellspacing="0" border="0">
  367. <tr>
  368. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> PVRTVec2::normalized </td>
  369. <td class="md" valign="top">(&nbsp;</td>
  370. <td class="mdname1" valign="top" nowrap> </td>
  371. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  372. <td class="md" nowrap> const<code> [inline]</code></td>
  373. </tr>
  374. </table>
  375. </td>
  376. </tr>
  377. </table>
  378. <table cellspacing=5 cellpadding=0 border=0>
  379. <tr>
  380. <td>
  381. &nbsp;
  382. </td>
  383. <td>
  384. <p>
  385. <dl compact><dt><b>Returns:</b></dt><dd>returns the normalized value of the vector </dd></dl>
  386. <dl compact><dt><b>Description:</b></dt><dd>returns a normalized vector of the same direction as this vector </dd></dl>
  387. </td>
  388. </tr>
  389. </table>
  390. <a class="anchor" name="a9" doxytag="PVRTVec2::operator *" ></a><p>
  391. <br><br><h3>operator *</h3><br><div>
  392. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  393. <tr>
  394. <td class="mdRow">
  395. <table cellpadding="0" cellspacing="0" border="0">
  396. <tr>
  397. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> PVRTVec2::operator * </td>
  398. <td class="md" valign="top">(&nbsp;</td>
  399. <td class="md" nowrap valign="top">const VERTTYPE &amp;&nbsp;</td>
  400. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  401. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  402. <td class="md" nowrap> const<code> [inline]</code></td>
  403. </tr>
  404. </table>
  405. </td>
  406. </tr>
  407. </table>
  408. <table cellspacing=5 cellpadding=0 border=0>
  409. <tr>
  410. <td>
  411. &nbsp;
  412. </td>
  413. <td>
  414. <p>
  415. <dl compact><dt><b>Inputs:</b></dt><dd>
  416. <table border="0" cellspacing="2" cellpadding="0">
  417. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a scalar </td></tr>
  418. </table>
  419. </dl>
  420. <dl compact><dt><b>Returns:</b></dt><dd>result of multiplication </dd></dl>
  421. <dl compact><dt><b>Description:</b></dt><dd>componentwise multiplication by scalar for Vec2 </dd></dl>
  422. </td>
  423. </tr>
  424. </table>
  425. <a class="anchor" name="a11" doxytag="PVRTVec2::operator *=" ></a><p>
  426. <br><br><h3>operator *=</h3><br><div>
  427. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  428. <tr>
  429. <td class="mdRow">
  430. <table cellpadding="0" cellspacing="0" border="0">
  431. <tr>
  432. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a>&amp; PVRTVec2::operator *= </td>
  433. <td class="md" valign="top">(&nbsp;</td>
  434. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  435. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  436. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  437. <td class="md" nowrap><code> [inline]</code></td>
  438. </tr>
  439. </table>
  440. </td>
  441. </tr>
  442. </table>
  443. <table cellspacing=5 cellpadding=0 border=0>
  444. <tr>
  445. <td>
  446. &nbsp;
  447. </td>
  448. <td>
  449. <p>
  450. <dl compact><dt><b>Inputs:</b></dt><dd>
  451. <table border="0" cellspacing="2" cellpadding="0">
  452. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a Vec2 </td></tr>
  453. </table>
  454. </dl>
  455. <dl compact><dt><b>Returns:</b></dt><dd>result of multiplication and assignment </dd></dl>
  456. <dl compact><dt><b>Description:</b></dt><dd>componentwise multiplication and assignment by Vec2 for Vec2 </dd></dl>
  457. </td>
  458. </tr>
  459. </table>
  460. <a class="anchor" name="a10" doxytag="PVRTVec2::operator *=" ></a><p>
  461. <br><br><h3>operator *=</h3><br><div>
  462. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  463. <tr>
  464. <td class="mdRow">
  465. <table cellpadding="0" cellspacing="0" border="0">
  466. <tr>
  467. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a>&amp; PVRTVec2::operator *= </td>
  468. <td class="md" valign="top">(&nbsp;</td>
  469. <td class="md" nowrap valign="top">const VERTTYPE &amp;&nbsp;</td>
  470. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  471. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  472. <td class="md" nowrap><code> [inline]</code></td>
  473. </tr>
  474. </table>
  475. </td>
  476. </tr>
  477. </table>
  478. <table cellspacing=5 cellpadding=0 border=0>
  479. <tr>
  480. <td>
  481. &nbsp;
  482. </td>
  483. <td>
  484. <p>
  485. <dl compact><dt><b>Inputs:</b></dt><dd>
  486. <table border="0" cellspacing="2" cellpadding="0">
  487. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a scalar </td></tr>
  488. </table>
  489. </dl>
  490. <dl compact><dt><b>Returns:</b></dt><dd>result of multiplication and assignment </dd></dl>
  491. <dl compact><dt><b>Description:</b></dt><dd>componentwise multiplication and assignment by scalar for Vec2 </dd></dl>
  492. </td>
  493. </tr>
  494. </table>
  495. <a class="anchor" name="a16" doxytag="PVRTVec2::operator!=" ></a><p>
  496. <br><br><h3>operator!=</h3><br><div>
  497. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  498. <tr>
  499. <td class="mdRow">
  500. <table cellpadding="0" cellspacing="0" border="0">
  501. <tr>
  502. <td class="md" nowrap valign="top"> bool PVRTVec2::operator!= </td>
  503. <td class="md" valign="top">(&nbsp;</td>
  504. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  505. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  506. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  507. <td class="md" nowrap> const<code> [inline]</code></td>
  508. </tr>
  509. </table>
  510. </td>
  511. </tr>
  512. </table>
  513. <table cellspacing=5 cellpadding=0 border=0>
  514. <tr>
  515. <td>
  516. &nbsp;
  517. </td>
  518. <td>
  519. <p>
  520. <dl compact><dt><b>Inputs:</b></dt><dd>
  521. <table border="0" cellspacing="2" cellpadding="0">
  522. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a single value </td></tr>
  523. </table>
  524. </dl>
  525. <dl compact><dt><b>Returns:</b></dt><dd>true if the two vectors are not equal </dd></dl>
  526. <dl compact><dt><b>Description:</b></dt><dd>PVRTVec2 inequality operator </dd></dl>
  527. </td>
  528. </tr>
  529. </table>
  530. <a class="anchor" name="a5" doxytag="PVRTVec2::operator+" ></a><p>
  531. <br><br><h3>operator+</h3><br><div>
  532. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  533. <tr>
  534. <td class="mdRow">
  535. <table cellpadding="0" cellspacing="0" border="0">
  536. <tr>
  537. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> PVRTVec2::operator+ </td>
  538. <td class="md" valign="top">(&nbsp;</td>
  539. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  540. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  541. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  542. <td class="md" nowrap> const<code> [inline]</code></td>
  543. </tr>
  544. </table>
  545. </td>
  546. </tr>
  547. </table>
  548. <table cellspacing=5 cellpadding=0 border=0>
  549. <tr>
  550. <td>
  551. &nbsp;
  552. </td>
  553. <td>
  554. <p>
  555. <dl compact><dt><b>Inputs:</b></dt><dd>
  556. <table border="0" cellspacing="2" cellpadding="0">
  557. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>another Vec2 </td></tr>
  558. </table>
  559. </dl>
  560. <dl compact><dt><b>Returns:</b></dt><dd>result of addition </dd></dl>
  561. <dl compact><dt><b>Description:</b></dt><dd>componentwise addition operator for two Vec2s </dd></dl>
  562. </td>
  563. </tr>
  564. </table>
  565. <a class="anchor" name="a7" doxytag="PVRTVec2::operator+=" ></a><p>
  566. <br><br><h3>operator+=</h3><br><div>
  567. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  568. <tr>
  569. <td class="mdRow">
  570. <table cellpadding="0" cellspacing="0" border="0">
  571. <tr>
  572. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a>&amp; PVRTVec2::operator+= </td>
  573. <td class="md" valign="top">(&nbsp;</td>
  574. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  575. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  576. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  577. <td class="md" nowrap><code> [inline]</code></td>
  578. </tr>
  579. </table>
  580. </td>
  581. </tr>
  582. </table>
  583. <table cellspacing=5 cellpadding=0 border=0>
  584. <tr>
  585. <td>
  586. &nbsp;
  587. </td>
  588. <td>
  589. <p>
  590. <dl compact><dt><b>Inputs:</b></dt><dd>
  591. <table border="0" cellspacing="2" cellpadding="0">
  592. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>another Vec2 </td></tr>
  593. </table>
  594. </dl>
  595. <dl compact><dt><b>Returns:</b></dt><dd>result of addition </dd></dl>
  596. <dl compact><dt><b>Description:</b></dt><dd>componentwise addition and assignment operator for two Vec2s </dd></dl>
  597. </td>
  598. </tr>
  599. </table>
  600. <a class="anchor" name="a6" doxytag="PVRTVec2::operator-" ></a><p>
  601. <br><br><h3>operator-</h3><br><div>
  602. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  603. <tr>
  604. <td class="mdRow">
  605. <table cellpadding="0" cellspacing="0" border="0">
  606. <tr>
  607. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> PVRTVec2::operator- </td>
  608. <td class="md" valign="top">(&nbsp;</td>
  609. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  610. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  611. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  612. <td class="md" nowrap> const<code> [inline]</code></td>
  613. </tr>
  614. </table>
  615. </td>
  616. </tr>
  617. </table>
  618. <table cellspacing=5 cellpadding=0 border=0>
  619. <tr>
  620. <td>
  621. &nbsp;
  622. </td>
  623. <td>
  624. <p>
  625. <dl compact><dt><b>Inputs:</b></dt><dd>
  626. <table border="0" cellspacing="2" cellpadding="0">
  627. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>another Vec2 </td></tr>
  628. </table>
  629. </dl>
  630. <dl compact><dt><b>Returns:</b></dt><dd>result of subtraction </dd></dl>
  631. <dl compact><dt><b>Description:</b></dt><dd>componentwise subtraction operator for two Vec2s </dd></dl>
  632. </td>
  633. </tr>
  634. </table>
  635. <a class="anchor" name="a8" doxytag="PVRTVec2::operator-=" ></a><p>
  636. <br><br><h3>operator-=</h3><br><div>
  637. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  638. <tr>
  639. <td class="mdRow">
  640. <table cellpadding="0" cellspacing="0" border="0">
  641. <tr>
  642. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a>&amp; PVRTVec2::operator-= </td>
  643. <td class="md" valign="top">(&nbsp;</td>
  644. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  645. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  646. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  647. <td class="md" nowrap><code> [inline]</code></td>
  648. </tr>
  649. </table>
  650. </td>
  651. </tr>
  652. </table>
  653. <table cellspacing=5 cellpadding=0 border=0>
  654. <tr>
  655. <td>
  656. &nbsp;
  657. </td>
  658. <td>
  659. <p>
  660. <dl compact><dt><b>Inputs:</b></dt><dd>
  661. <table border="0" cellspacing="2" cellpadding="0">
  662. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>another Vec2 </td></tr>
  663. </table>
  664. </dl>
  665. <dl compact><dt><b>Returns:</b></dt><dd>result of subtraction </dd></dl>
  666. <dl compact><dt><b>Description:</b></dt><dd>componentwise subtraction and assignment operator for two Vec2s </dd></dl>
  667. </td>
  668. </tr>
  669. </table>
  670. <p>
  671. Here is the call graph for this function:<p><center><img src="structPVRTVec2_a8_cgraph.png" border="0" usemap="#structPVRTVec2_a8_cgraph_map" alt=""></center>
  672. <map name="structPVRTVec2_a8_cgraph_map">
  673. <area href="structPVRTVec2.html#a0" shape="rect" coords="212,7,372,33" alt="">
  674. </map>
  675. <a class="anchor" name="a12" doxytag="PVRTVec2::operator/" ></a><p>
  676. <br><br><h3>operator/</h3><br><div>
  677. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  678. <tr>
  679. <td class="mdRow">
  680. <table cellpadding="0" cellspacing="0" border="0">
  681. <tr>
  682. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> PVRTVec2::operator/ </td>
  683. <td class="md" valign="top">(&nbsp;</td>
  684. <td class="md" nowrap valign="top">const VERTTYPE &amp;&nbsp;</td>
  685. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  686. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  687. <td class="md" nowrap> const<code> [inline]</code></td>
  688. </tr>
  689. </table>
  690. </td>
  691. </tr>
  692. </table>
  693. <table cellspacing=5 cellpadding=0 border=0>
  694. <tr>
  695. <td>
  696. &nbsp;
  697. </td>
  698. <td>
  699. <p>
  700. <dl compact><dt><b>Inputs:</b></dt><dd>
  701. <table border="0" cellspacing="2" cellpadding="0">
  702. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a scalar </td></tr>
  703. </table>
  704. </dl>
  705. <dl compact><dt><b>Returns:</b></dt><dd>result of division </dd></dl>
  706. <dl compact><dt><b>Description:</b></dt><dd>componentwise division by scalar for Vec2 </dd></dl>
  707. </td>
  708. </tr>
  709. </table>
  710. <a class="anchor" name="a14" doxytag="PVRTVec2::operator/=" ></a><p>
  711. <br><br><h3>operator/=</h3><br><div>
  712. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  713. <tr>
  714. <td class="mdRow">
  715. <table cellpadding="0" cellspacing="0" border="0">
  716. <tr>
  717. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a>&amp; PVRTVec2::operator/= </td>
  718. <td class="md" valign="top">(&nbsp;</td>
  719. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  720. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  721. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  722. <td class="md" nowrap><code> [inline]</code></td>
  723. </tr>
  724. </table>
  725. </td>
  726. </tr>
  727. </table>
  728. <table cellspacing=5 cellpadding=0 border=0>
  729. <tr>
  730. <td>
  731. &nbsp;
  732. </td>
  733. <td>
  734. <p>
  735. <dl compact><dt><b>Inputs:</b></dt><dd>
  736. <table border="0" cellspacing="2" cellpadding="0">
  737. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a Vec2 </td></tr>
  738. </table>
  739. </dl>
  740. <dl compact><dt><b>Returns:</b></dt><dd>result of division and assignment </dd></dl>
  741. <dl compact><dt><b>Description:</b></dt><dd>componentwise division and assignment by Vec2 for Vec2 </dd></dl>
  742. </td>
  743. </tr>
  744. </table>
  745. <a class="anchor" name="a13" doxytag="PVRTVec2::operator/=" ></a><p>
  746. <br><br><h3>operator/=</h3><br><div>
  747. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  748. <tr>
  749. <td class="mdRow">
  750. <table cellpadding="0" cellspacing="0" border="0">
  751. <tr>
  752. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a>&amp; PVRTVec2::operator/= </td>
  753. <td class="md" valign="top">(&nbsp;</td>
  754. <td class="md" nowrap valign="top">const VERTTYPE &amp;&nbsp;</td>
  755. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  756. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  757. <td class="md" nowrap><code> [inline]</code></td>
  758. </tr>
  759. </table>
  760. </td>
  761. </tr>
  762. </table>
  763. <table cellspacing=5 cellpadding=0 border=0>
  764. <tr>
  765. <td>
  766. &nbsp;
  767. </td>
  768. <td>
  769. <p>
  770. <dl compact><dt><b>Inputs:</b></dt><dd>
  771. <table border="0" cellspacing="2" cellpadding="0">
  772. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a scalar </td></tr>
  773. </table>
  774. </dl>
  775. <dl compact><dt><b>Returns:</b></dt><dd>result of division and assignment </dd></dl>
  776. <dl compact><dt><b>Description:</b></dt><dd>componentwise division and assignment by scalar for Vec2 </dd></dl>
  777. </td>
  778. </tr>
  779. </table>
  780. <a class="anchor" name="a15" doxytag="PVRTVec2::operator==" ></a><p>
  781. <br><br><h3>operator==</h3><br><div>
  782. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  783. <tr>
  784. <td class="mdRow">
  785. <table cellpadding="0" cellspacing="0" border="0">
  786. <tr>
  787. <td class="md" nowrap valign="top"> bool PVRTVec2::operator== </td>
  788. <td class="md" valign="top">(&nbsp;</td>
  789. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  790. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  791. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  792. <td class="md" nowrap> const<code> [inline]</code></td>
  793. </tr>
  794. </table>
  795. </td>
  796. </tr>
  797. </table>
  798. <table cellspacing=5 cellpadding=0 border=0>
  799. <tr>
  800. <td>
  801. &nbsp;
  802. </td>
  803. <td>
  804. <p>
  805. <dl compact><dt><b>Inputs:</b></dt><dd>
  806. <table border="0" cellspacing="2" cellpadding="0">
  807. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a single value </td></tr>
  808. </table>
  809. </dl>
  810. <dl compact><dt><b>Returns:</b></dt><dd>true if the two vectors are equal </dd></dl>
  811. <dl compact><dt><b>Description:</b></dt><dd>PVRTVec2 equality operator </dd></dl>
  812. </td>
  813. </tr>
  814. </table>
  815. <a class="anchor" name="a23" doxytag="PVRTVec2::ptr" ></a><p>
  816. <br><br><h3>ptr</h3><br><div>
  817. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  818. <tr>
  819. <td class="mdRow">
  820. <table cellpadding="0" cellspacing="0" border="0">
  821. <tr>
  822. <td class="md" nowrap valign="top"> VERTTYPE* PVRTVec2::ptr </td>
  823. <td class="md" valign="top">(&nbsp;</td>
  824. <td class="mdname1" valign="top" nowrap> </td>
  825. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  826. <td class="md" nowrap><code> [inline]</code></td>
  827. </tr>
  828. </table>
  829. </td>
  830. </tr>
  831. </table>
  832. <table cellspacing=5 cellpadding=0 border=0>
  833. <tr>
  834. <td>
  835. &nbsp;
  836. </td>
  837. <td>
  838. <p>
  839. <dl compact><dt><b>Returns:</b></dt><dd>pointer </dd></dl>
  840. <dl compact><dt><b>Description:</b></dt><dd>returns a pointer to memory containing the values of the Vec3 </dd></dl>
  841. </td>
  842. </tr>
  843. </table>
  844. <a class="anchor" name="a21" doxytag="PVRTVec2::rotated90" ></a><p>
  845. <br><br><h3>rotated90</h3><br><div>
  846. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  847. <tr>
  848. <td class="mdRow">
  849. <table cellpadding="0" cellspacing="0" border="0">
  850. <tr>
  851. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> PVRTVec2::rotated90 </td>
  852. <td class="md" valign="top">(&nbsp;</td>
  853. <td class="mdname1" valign="top" nowrap> </td>
  854. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  855. <td class="md" nowrap> const<code> [inline]</code></td>
  856. </tr>
  857. </table>
  858. </td>
  859. </tr>
  860. </table>
  861. <table cellspacing=5 cellpadding=0 border=0>
  862. <tr>
  863. <td>
  864. &nbsp;
  865. </td>
  866. <td>
  867. <p>
  868. <dl compact><dt><b>Returns:</b></dt><dd>returns the vector rotated 90° </dd></dl>
  869. <dl compact><dt><b>Description:</b></dt><dd>returns the vector rotated 90° </dd></dl>
  870. </td>
  871. </tr>
  872. </table>
  873. <p>
  874. Here is the call graph for this function:<p><center><img src="structPVRTVec2_a21_cgraph.png" border="0" usemap="#structPVRTVec2_a21_cgraph_map" alt=""></center>
  875. <map name="structPVRTVec2_a21_cgraph_map">
  876. <area href="structPVRTVec3.html#a0" shape="rect" coords="207,7,367,33" alt="">
  877. </map>
  878. <hr><h2>Friends And Related Function Documentation</h2>
  879. <a class="anchor" name="n1" doxytag="PVRTVec2::operator *" ></a><p>
  880. <br><br><h3>operator *</h3><br><div>
  881. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  882. <tr>
  883. <td class="mdRow">
  884. <table cellpadding="0" cellspacing="0" border="0">
  885. <tr>
  886. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> operator * </td>
  887. <td class="md" valign="top">(&nbsp;</td>
  888. <td class="md" nowrap valign="top">const VERTTYPE&nbsp;</td>
  889. <td class="mdname" nowrap> <em>lhs</em>, </td>
  890. </tr>
  891. <tr>
  892. <td class="md" nowrap align="right"></td>
  893. <td></td>
  894. <td class="md" nowrap>const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  895. <td class="mdname" nowrap> <em>rhs</em></td>
  896. </tr>
  897. <tr>
  898. <td></td>
  899. <td class="md">)&nbsp;</td>
  900. <td class="md" colspan="2"><code> [friend]</code></td>
  901. </tr>
  902. </table>
  903. </td>
  904. </tr>
  905. </table>
  906. <table cellspacing=5 cellpadding=0 border=0>
  907. <tr>
  908. <td>
  909. &nbsp;
  910. </td>
  911. <td>
  912. <p>
  913. <dl compact><dt><b>Inputs:</b></dt><dd>
  914. <table border="0" cellspacing="2" cellpadding="0">
  915. <tr><td valign=top><em>lhs</em>&nbsp;</td><td>scalar </td></tr>
  916. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a Vec2 </td></tr>
  917. </table>
  918. </dl>
  919. <dl compact><dt><b>Returns:</b></dt><dd>result of multiplication </dd></dl>
  920. <dl compact><dt><b>Description:</b></dt><dd>multiplication operator for a Vec2 </dd></dl>
  921. </td>
  922. </tr>
  923. </table>
  924. <a class="anchor" name="n0" doxytag="PVRTVec2::operator-" ></a><p>
  925. <br><br><h3>operator-</h3><br><div>
  926. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  927. <tr>
  928. <td class="mdRow">
  929. <table cellpadding="0" cellspacing="0" border="0">
  930. <tr>
  931. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> operator- </td>
  932. <td class="md" valign="top">(&nbsp;</td>
  933. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  934. <td class="mdname1" valign="top" nowrap> <em>rhs</em> </td>
  935. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  936. <td class="md" nowrap><code> [friend]</code></td>
  937. </tr>
  938. </table>
  939. </td>
  940. </tr>
  941. </table>
  942. <table cellspacing=5 cellpadding=0 border=0>
  943. <tr>
  944. <td>
  945. &nbsp;
  946. </td>
  947. <td>
  948. <p>
  949. <dl compact><dt><b>Inputs:</b></dt><dd>
  950. <table border="0" cellspacing="2" cellpadding="0">
  951. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>another Vec2 </td></tr>
  952. </table>
  953. </dl>
  954. <dl compact><dt><b>Returns:</b></dt><dd>result of negation </dd></dl>
  955. <dl compact><dt><b>Description:</b></dt><dd>negation operator for a Vec2 </dd></dl>
  956. </td>
  957. </tr>
  958. </table>
  959. <a class="anchor" name="n2" doxytag="PVRTVec2::operator/" ></a><p>
  960. <br><br><h3>operator/</h3><br><div>
  961. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  962. <tr>
  963. <td class="mdRow">
  964. <table cellpadding="0" cellspacing="0" border="0">
  965. <tr>
  966. <td class="md" nowrap valign="top"> <a class="el" href="structPVRTVec2.html">PVRTVec2</a> operator/ </td>
  967. <td class="md" valign="top">(&nbsp;</td>
  968. <td class="md" nowrap valign="top">const VERTTYPE&nbsp;</td>
  969. <td class="mdname" nowrap> <em>lhs</em>, </td>
  970. </tr>
  971. <tr>
  972. <td class="md" nowrap align="right"></td>
  973. <td></td>
  974. <td class="md" nowrap>const <a class="el" href="structPVRTVec2.html">PVRTVec2</a> &amp;&nbsp;</td>
  975. <td class="mdname" nowrap> <em>rhs</em></td>
  976. </tr>
  977. <tr>
  978. <td></td>
  979. <td class="md">)&nbsp;</td>
  980. <td class="md" colspan="2"><code> [friend]</code></td>
  981. </tr>
  982. </table>
  983. </td>
  984. </tr>
  985. </table>
  986. <table cellspacing=5 cellpadding=0 border=0>
  987. <tr>
  988. <td>
  989. &nbsp;
  990. </td>
  991. <td>
  992. <p>
  993. <dl compact><dt><b>Inputs:</b></dt><dd>
  994. <table border="0" cellspacing="2" cellpadding="0">
  995. <tr><td valign=top><em>lhs</em>&nbsp;</td><td>scalar </td></tr>
  996. <tr><td valign=top><em>rhs</em>&nbsp;</td><td>a Vec2 </td></tr>
  997. </table>
  998. </dl>
  999. <dl compact><dt><b>Returns:</b></dt><dd>result of division </dd></dl>
  1000. <dl compact><dt><b>Description:</b></dt><dd>division operator for scalar and Vec2 </dd></dl>
  1001. </td>
  1002. </tr>
  1003. </table>
  1004. <hr><h2>Member Data Documentation</h2>
  1005. <a class="anchor" name="o0" doxytag="PVRTVec2::x" ></a><p>
  1006. <br><br><h3>x</h3><br><div>
  1007. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  1008. <tr>
  1009. <td class="mdRow">
  1010. <table cellpadding="0" cellspacing="0" border="0">
  1011. <tr>
  1012. <td class="md" nowrap valign="top"> VERTTYPE <a class="el" href="structPVRTVec2.html#o0">PVRTVec2::x</a>
  1013. </table>
  1014. </td>
  1015. </tr>
  1016. </table>
  1017. <table cellspacing=5 cellpadding=0 border=0>
  1018. <tr>
  1019. <td>
  1020. &nbsp;
  1021. </td>
  1022. <td>
  1023. <p>
  1024. </td>
  1025. </tr>
  1026. </table>
  1027. <a class="anchor" name="o1" doxytag="PVRTVec2::y" ></a><p>
  1028. <br><br><h3>y</h3><br><div>
  1029. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  1030. <tr>
  1031. <td class="mdRow">
  1032. <table cellpadding="0" cellspacing="0" border="0">
  1033. <tr>
  1034. <td class="md" nowrap valign="top"> VERTTYPE <a class="el" href="structPVRTVec2.html#o1">PVRTVec2::y</a>
  1035. </table>
  1036. </td>
  1037. </tr>
  1038. </table>
  1039. <table cellspacing=5 cellpadding=0 border=0>
  1040. <tr>
  1041. <td>
  1042. &nbsp;
  1043. </td>
  1044. <td>
  1045. <p>
  1046. </td>
  1047. </tr>
  1048. </table>
  1049. <hr>The documentation for this struct was generated from the following file:<ul>
  1050. <li><a class="el" href="PVRTVector_8h-source.html">PVRTVector.h</a></ul>
  1051. <br>
  1052. <br>
  1053. <P align=left><FONT size=2><STRONG><A
  1054. href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> ©
  1055. 1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
  1056. <hr>
  1057. <address style="align: left;"><small><FONT color=f0f>
  1058. Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
  1059. </body>
  1060. </html>