aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Documentation/PhysXAPI/files/PxVec4_8h-source.html
diff options
context:
space:
mode:
authorgit perforce import user <a@b>2016-10-25 12:29:14 -0600
committerSheikh Dawood Abdul Ajees <Sheikh Dawood Abdul Ajees>2016-10-25 18:56:37 -0500
commit3dfe2108cfab31ba3ee5527e217d0d8e99a51162 (patch)
treefa6485c169e50d7415a651bf838f5bcd0fd3bfbd /PhysX_3.4/Documentation/PhysXAPI/files/PxVec4_8h-source.html
downloadphysx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.tar.xz
physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.zip
Initial commit:
PhysX 3.4.0 Update @ 21294896 APEX 1.4.0 Update @ 21275617 [CL 21300167]
Diffstat (limited to 'PhysX_3.4/Documentation/PhysXAPI/files/PxVec4_8h-source.html')
-rw-r--r--PhysX_3.4/Documentation/PhysXAPI/files/PxVec4_8h-source.html279
1 files changed, 279 insertions, 0 deletions
diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/PxVec4_8h-source.html b/PhysX_3.4/Documentation/PhysXAPI/files/PxVec4_8h-source.html
new file mode 100644
index 00000000..98b86695
--- /dev/null
+++ b/PhysX_3.4/Documentation/PhysXAPI/files/PxVec4_8h-source.html
@@ -0,0 +1,279 @@
+<html>
+ <head>
+ <title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxVec4.h Source File</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
+ </head>
+
+ <body bgcolor="#FFFFFF">
+ <div id="header">
+ <hr class="first">
+ <img alt="" src="images/PhysXlogo.png" align="middle"> <br>
+ <center>
+ <a class="qindex" href="main.html">Main Page</a> &nbsp;
+ <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp;
+ <a class="qindex" href="annotated.html">Compound List</a> &nbsp;
+ <a class="qindex" href="functions.html">Compound Members</a> &nbsp;
+ </center>
+ <hr class="second">
+ </div>
+<!-- Generated by Doxygen 1.5.8 -->
+<h1>PxVec4.h</h1><a href="PxVec4_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This code contains NVIDIA Confidential Information and is disclosed to you</span>
+<a name="l00002"></a>00002 <span class="comment">// under a form of NVIDIA software license agreement provided separately to you.</span>
+<a name="l00003"></a>00003 <span class="comment">//</span>
+<a name="l00004"></a>00004 <span class="comment">// Notice</span>
+<a name="l00005"></a>00005 <span class="comment">// NVIDIA Corporation and its licensors retain all intellectual property and</span>
+<a name="l00006"></a>00006 <span class="comment">// proprietary rights in and to this software and related documentation and</span>
+<a name="l00007"></a>00007 <span class="comment">// any modifications thereto. Any use, reproduction, disclosure, or</span>
+<a name="l00008"></a>00008 <span class="comment">// distribution of this software and related documentation without an express</span>
+<a name="l00009"></a>00009 <span class="comment">// license agreement from NVIDIA Corporation is strictly prohibited.</span>
+<a name="l00010"></a>00010 <span class="comment">//</span>
+<a name="l00011"></a>00011 <span class="comment">// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES</span>
+<a name="l00012"></a>00012 <span class="comment">// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO</span>
+<a name="l00013"></a>00013 <span class="comment">// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,</span>
+<a name="l00014"></a>00014 <span class="comment">// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</span>
+<a name="l00015"></a>00015 <span class="comment">//</span>
+<a name="l00016"></a>00016 <span class="comment">// Information and code furnished is believed to be accurate and reliable.</span>
+<a name="l00017"></a>00017 <span class="comment">// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such</span>
+<a name="l00018"></a>00018 <span class="comment">// information or for any infringement of patents or other rights of third parties that may</span>
+<a name="l00019"></a>00019 <span class="comment">// result from its use. No license is granted by implication or otherwise under any patent</span>
+<a name="l00020"></a>00020 <span class="comment">// or patent rights of NVIDIA Corporation. Details are subject to change without notice.</span>
+<a name="l00021"></a>00021 <span class="comment">// This code supersedes and replaces all information previously supplied.</span>
+<a name="l00022"></a>00022 <span class="comment">// NVIDIA Corporation products are not authorized for use as critical</span>
+<a name="l00023"></a>00023 <span class="comment">// components in life support devices or systems without express written approval of</span>
+<a name="l00024"></a>00024 <span class="comment">// NVIDIA Corporation.</span>
+<a name="l00025"></a>00025 <span class="comment">//</span>
+<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2016 NVIDIA Corporation. All rights reserved.</span>
+<a name="l00027"></a>00027 <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span>
+<a name="l00028"></a>00028 <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.</span>
+<a name="l00029"></a>00029
+<a name="l00030"></a>00030 <span class="preprocessor">#ifndef PXFOUNDATION_PXVEC4_H</span>
+<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define PXFOUNDATION_PXVEC4_H</span>
+<a name="l00032"></a>00032 <span class="preprocessor"></span>
+<a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="PxMath_8h.html">foundation/PxMath.h</a>"</span>
+<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="PxVec3_8h.html">foundation/PxVec3.h</a>"</span>
+<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="PxAssert_8h.html">foundation/PxAssert.h</a>"</span>
+<a name="l00038"></a>00038
+<a name="l00044"></a>00044 <span class="preprocessor">#if !PX_DOXYGEN</span>
+<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
+<a name="l00046"></a>00046 {
+<a name="l00047"></a>00047 <span class="preprocessor">#endif</span>
+<a name="l00048"></a>00048 <span class="preprocessor"></span>
+<a name="l00049"></a><a class="code" href="classPxVec4.html">00049</a> <span class="keyword">class </span><a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>
+<a name="l00050"></a>00050 {
+<a name="l00051"></a>00051 <span class="keyword">public</span>:
+<a name="l00055"></a><a class="code" href="classPxVec4.html#f58c1ce0c441477e95bf94d9c972055f">00055</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>()
+<a name="l00056"></a>00056 {
+<a name="l00057"></a>00057 }
+<a name="l00058"></a>00058
+<a name="l00062"></a><a class="code" href="classPxVec4.html#e1b794ea59ecae18c88f3d6a6ac9213d">00062</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(<a class="code" href="group__foundation.html#gc10bd69c94c165a52f6de39678ef9d4c">PxZERO</a> r) : x(0.0f), y(0.0f), z(0.0f), w(0.0f)
+<a name="l00063"></a>00063 {
+<a name="l00064"></a>00064 <a class="code" href="group__foundation.html#g3b618390d8743c532c4131cb931df43a">PX_UNUSED</a>(r);
+<a name="l00065"></a>00065 }
+<a name="l00066"></a>00066
+<a name="l00074"></a><a class="code" href="classPxVec4.html#fd19aec6c7311f6e2fd21b13cda157bd">00074</a> <span class="keyword">explicit</span> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(<span class="keywordtype">float</span> a) : x(a), y(a), z(a), w(a)
+<a name="l00075"></a>00075 {
+<a name="l00076"></a>00076 }
+<a name="l00077"></a>00077
+<a name="l00086"></a><a class="code" href="classPxVec4.html#d3833361ef3e14f3f5c8f5af5d5c5684">00086</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(<span class="keywordtype">float</span> nx, <span class="keywordtype">float</span> ny, <span class="keywordtype">float</span> nz, <span class="keywordtype">float</span> nw) : x(nx), y(ny), z(nz), w(nw)
+<a name="l00087"></a>00087 {
+<a name="l00088"></a>00088 }
+<a name="l00089"></a>00089
+<a name="l00096"></a><a class="code" href="classPxVec4.html#4f2832b0005e37138fa3a2a2b41b0076">00096</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>&amp; v, <span class="keywordtype">float</span> nw) : x(v.x), y(v.y), z(v.z), w(nw)
+<a name="l00097"></a>00097 {
+<a name="l00098"></a>00098 }
+<a name="l00099"></a>00099
+<a name="l00105"></a><a class="code" href="classPxVec4.html#719a2783335631f273eb46c6f4a61925">00105</a> <span class="keyword">explicit</span> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> v[]) : x(v[0]), y(v[1]), z(v[2]), w(v[3])
+<a name="l00106"></a>00106 {
+<a name="l00107"></a>00107 }
+<a name="l00108"></a>00108
+<a name="l00112"></a><a class="code" href="classPxVec4.html#ea852eee7dfce9fe3749ef028b85f070">00112</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v) : x(v.x), y(v.y), z(v.z), w(v.w)
+<a name="l00113"></a>00113 {
+<a name="l00114"></a>00114 }
+<a name="l00115"></a>00115
+<a name="l00116"></a>00116 <span class="comment">// Operators</span>
+<a name="l00117"></a>00117
+<a name="l00121"></a><a class="code" href="classPxVec4.html#ccb157828284af88b6605f28c3f186e5">00121</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; p)
+<a name="l00122"></a>00122 {
+<a name="l00123"></a>00123 x = p.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a>;
+<a name="l00124"></a>00124 y = p.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a>;
+<a name="l00125"></a>00125 z = p.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a>;
+<a name="l00126"></a>00126 w = p.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>;
+<a name="l00127"></a>00127 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+<a name="l00128"></a>00128 }
+<a name="l00129"></a>00129
+<a name="l00133"></a><a class="code" href="classPxVec4.html#b99a22543b09188d3677461ee1016ab4">00133</a> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">float</span>&amp; operator[](<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
+<a name="l00134"></a>00134 {
+<a name="l00135"></a>00135 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(index &lt;= 3);
+<a name="l00136"></a>00136
+<a name="l00137"></a>00137 <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">float</span>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>)[index];
+<a name="l00138"></a>00138 }
+<a name="l00139"></a>00139
+<a name="l00143"></a><a class="code" href="classPxVec4.html#dccc186308bad92528570f565a17cb54">00143</a> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">const</span> <span class="keywordtype">float</span>&amp; operator[](<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)<span class="keyword"> const</span>
+<a name="l00144"></a>00144 <span class="keyword"> </span>{
+<a name="l00145"></a>00145 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(index &lt;= 3);
+<a name="l00146"></a>00146
+<a name="l00147"></a>00147 <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span><span class="keyword">const </span><span class="keywordtype">float</span>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>)[index];
+<a name="l00148"></a>00148 }
+<a name="l00149"></a>00149
+<a name="l00153"></a><a class="code" href="classPxVec4.html#770c7ac32c499285f501cd70c9be16a9">00153</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)<span class="keyword"> const</span>
+<a name="l00154"></a>00154 <span class="keyword"> </span>{
+<a name="l00155"></a>00155 <span class="keywordflow">return</span> x == v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a> &amp;&amp; y == v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a> &amp;&amp; z == v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a> &amp;&amp; w == v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>;
+<a name="l00156"></a>00156 }
+<a name="l00157"></a>00157
+<a name="l00161"></a><a class="code" href="classPxVec4.html#a671079e351b6cb053b33c475da4b664">00161</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)<span class="keyword"> const</span>
+<a name="l00162"></a>00162 <span class="keyword"> </span>{
+<a name="l00163"></a>00163 <span class="keywordflow">return</span> x != v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a> || y != v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a> || z != v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a> || w != v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>;
+<a name="l00164"></a>00164 }
+<a name="l00165"></a>00165
+<a name="l00169"></a><a class="code" href="classPxVec4.html#8c08d3fbdb658c03f015c86cf0bf374f">00169</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> isZero()<span class="keyword"> const</span>
+<a name="l00170"></a>00170 <span class="keyword"> </span>{
+<a name="l00171"></a>00171 <span class="keywordflow">return</span> x == 0 &amp;&amp; y == 0 &amp;&amp; z == 0 &amp;&amp; w == 0;
+<a name="l00172"></a>00172 }
+<a name="l00173"></a>00173
+<a name="l00177"></a><a class="code" href="classPxVec4.html#9de50dfeb43cbe5566642f2d56b7d0c8">00177</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> isFinite()<span class="keyword"> const</span>
+<a name="l00178"></a>00178 <span class="keyword"> </span>{
+<a name="l00179"></a>00179 <span class="keywordflow">return</span> <a class="code" href="group__foundation.html#gd6de0f4af98c5c5280b8fe695dc87318" title="returns true if the passed number is a finite floating point number as opposed to...">PxIsFinite</a>(x) &amp;&amp; <a class="code" href="group__foundation.html#gd6de0f4af98c5c5280b8fe695dc87318" title="returns true if the passed number is a finite floating point number as opposed to...">PxIsFinite</a>(y) &amp;&amp; <a class="code" href="group__foundation.html#gd6de0f4af98c5c5280b8fe695dc87318" title="returns true if the passed number is a finite floating point number as opposed to...">PxIsFinite</a>(z) &amp;&amp; <a class="code" href="group__foundation.html#gd6de0f4af98c5c5280b8fe695dc87318" title="returns true if the passed number is a finite floating point number as opposed to...">PxIsFinite</a>(w);
+<a name="l00180"></a>00180 }
+<a name="l00181"></a>00181
+<a name="l00185"></a><a class="code" href="classPxVec4.html#dd5fdacb0f9ab7870cce4751092c5165">00185</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> isNormalized()<span class="keyword"> const</span>
+<a name="l00186"></a>00186 <span class="keyword"> </span>{
+<a name="l00187"></a>00187 <span class="keyword">const</span> <span class="keywordtype">float</span> unitTolerance = 1e-4f;
+<a name="l00188"></a>00188 <span class="keywordflow">return</span> isFinite() &amp;&amp; <a class="code" href="group__foundation.html#gf72e1dce9e874da7b92cbc0ea5e4e30d" title="abs returns the absolute value of its argument.">PxAbs</a>(magnitude() - 1) &lt; unitTolerance;
+<a name="l00189"></a>00189 }
+<a name="l00190"></a>00190
+<a name="l00196"></a><a class="code" href="classPxVec4.html#ebdbd51adb5f4896f2d2997201b67621">00196</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">float</span> magnitudeSquared()<span class="keyword"> const</span>
+<a name="l00197"></a>00197 <span class="keyword"> </span>{
+<a name="l00198"></a>00198 <span class="keywordflow">return</span> x * x + y * y + z * z + w * w;
+<a name="l00199"></a>00199 }
+<a name="l00200"></a>00200
+<a name="l00204"></a><a class="code" href="classPxVec4.html#94bb6fb85be602331482909c05a65bfa">00204</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">float</span> magnitude()<span class="keyword"> const</span>
+<a name="l00205"></a>00205 <span class="keyword"> </span>{
+<a name="l00206"></a>00206 <span class="keywordflow">return</span> <a class="code" href="group__foundation.html#g11d5e4e77acad728886b380b5f3806f0" title="Square root.">PxSqrt</a>(magnitudeSquared());
+<a name="l00207"></a>00207 }
+<a name="l00208"></a>00208
+<a name="l00212"></a><a class="code" href="classPxVec4.html#0aed5f572dbefae9c08c9bdbc0ed5cce">00212</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> operator-()<span class="keyword"> const</span>
+<a name="l00213"></a>00213 <span class="keyword"> </span>{
+<a name="l00214"></a>00214 <span class="keywordflow">return</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(-x, -y, -z, -w);
+<a name="l00215"></a>00215 }
+<a name="l00216"></a>00216
+<a name="l00220"></a><a class="code" href="classPxVec4.html#510907b0bd63c5a4b8f036974d63b715">00220</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> <a class="code" href="group__foundation.html#g9f9ec0bd1ad1ead5b8d88ff933363cad" title="Addition operator.">operator+</a>(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)<span class="keyword"> const</span>
+<a name="l00221"></a>00221 <span class="keyword"> </span>{
+<a name="l00222"></a>00222 <span class="keywordflow">return</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(x + v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a>, y + v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a>, z + v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a>, w + v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>);
+<a name="l00223"></a>00223 }
+<a name="l00224"></a>00224
+<a name="l00228"></a><a class="code" href="classPxVec4.html#af14b0abf9c9eeb6cc5d4d8e11932961">00228</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> operator-(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)<span class="keyword"> const</span>
+<a name="l00229"></a>00229 <span class="keyword"> </span>{
+<a name="l00230"></a>00230 <span class="keywordflow">return</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(x - v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a>, y - v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a>, z - v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a>, w - v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>);
+<a name="l00231"></a>00231 }
+<a name="l00232"></a>00232
+<a name="l00237"></a><a class="code" href="classPxVec4.html#83b8b1876adfff5c140f8d20a727a063">00237</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> <a class="code" href="group__foundation.html#ga7415102b45174d3eda4d4f2f12127bc">operator*</a>(<span class="keywordtype">float</span> f)<span class="keyword"> const</span>
+<a name="l00238"></a>00238 <span class="keyword"> </span>{
+<a name="l00239"></a>00239 <span class="keywordflow">return</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(x * f, y * f, z * f, w * f);
+<a name="l00240"></a>00240 }
+<a name="l00241"></a>00241
+<a name="l00245"></a><a class="code" href="classPxVec4.html#76b017254ffc69548c4fd3d5c66ec82c">00245</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> operator/(<span class="keywordtype">float</span> f)<span class="keyword"> const</span>
+<a name="l00246"></a>00246 <span class="keyword"> </span>{
+<a name="l00247"></a>00247 f = 1.0f / f;
+<a name="l00248"></a>00248 <span class="keywordflow">return</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(x * f, y * f, z * f, w * f);
+<a name="l00249"></a>00249 }
+<a name="l00250"></a>00250
+<a name="l00254"></a><a class="code" href="classPxVec4.html#97fc9397fdd8da4b2a5d3eae7e61445e">00254</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; operator+=(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)
+<a name="l00255"></a>00255 {
+<a name="l00256"></a>00256 x += v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a>;
+<a name="l00257"></a>00257 y += v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a>;
+<a name="l00258"></a>00258 z += v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a>;
+<a name="l00259"></a>00259 w += v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>;
+<a name="l00260"></a>00260 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+<a name="l00261"></a>00261 }
+<a name="l00262"></a>00262
+<a name="l00266"></a><a class="code" href="classPxVec4.html#ed87f6484ead2af7c0ef02a398acad28">00266</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; operator-=(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)
+<a name="l00267"></a>00267 {
+<a name="l00268"></a>00268 x -= v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a>;
+<a name="l00269"></a>00269 y -= v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a>;
+<a name="l00270"></a>00270 z -= v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a>;
+<a name="l00271"></a>00271 w -= v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>;
+<a name="l00272"></a>00272 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+<a name="l00273"></a>00273 }
+<a name="l00274"></a>00274
+<a name="l00278"></a><a class="code" href="classPxVec4.html#014f8f2fd277438e7df373955b22a44f">00278</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; operator*=(<span class="keywordtype">float</span> f)
+<a name="l00279"></a>00279 {
+<a name="l00280"></a>00280 x *= f;
+<a name="l00281"></a>00281 y *= f;
+<a name="l00282"></a>00282 z *= f;
+<a name="l00283"></a>00283 w *= f;
+<a name="l00284"></a>00284 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+<a name="l00285"></a>00285 }
+<a name="l00289"></a><a class="code" href="classPxVec4.html#783b7847ca910e74c9ca9558bf8f1c3f">00289</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; operator/=(<span class="keywordtype">float</span> f)
+<a name="l00290"></a>00290 {
+<a name="l00291"></a>00291 f = 1.0f / f;
+<a name="l00292"></a>00292 x *= f;
+<a name="l00293"></a>00293 y *= f;
+<a name="l00294"></a>00294 z *= f;
+<a name="l00295"></a>00295 w *= f;
+<a name="l00296"></a>00296 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+<a name="l00297"></a>00297 }
+<a name="l00298"></a>00298
+<a name="l00302"></a><a class="code" href="classPxVec4.html#3fdaa88c7a4fcc660d0cd858bbde1012">00302</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">float</span> dot(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)<span class="keyword"> const</span>
+<a name="l00303"></a>00303 <span class="keyword"> </span>{
+<a name="l00304"></a>00304 <span class="keywordflow">return</span> x * v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a> + y * v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a> + z * v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a> + w * v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>;
+<a name="l00305"></a>00305 }
+<a name="l00306"></a>00306
+<a name="l00309"></a><a class="code" href="classPxVec4.html#c581127915a891d9ccbeda7632d6d143">00309</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> getNormalized()<span class="keyword"> const</span>
+<a name="l00310"></a>00310 <span class="keyword"> </span>{
+<a name="l00311"></a>00311 <span class="keywordtype">float</span> m = magnitudeSquared();
+<a name="l00312"></a>00312 <span class="keywordflow">return</span> m &gt; 0.0f ? *<span class="keyword">this</span> * <a class="code" href="group__foundation.html#gcd945627f345ba03e83a30387ab99dea" title="reciprocal square root.">PxRecipSqrt</a>(m) : <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(0, 0, 0, 0);
+<a name="l00313"></a>00313 }
+<a name="l00314"></a>00314
+<a name="l00318"></a><a class="code" href="classPxVec4.html#1c40877f3e03054cbd08a48fc9039cd4">00318</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">float</span> normalize()
+<a name="l00319"></a>00319 {
+<a name="l00320"></a>00320 <span class="keywordtype">float</span> m = magnitude();
+<a name="l00321"></a>00321 <span class="keywordflow">if</span>(m &gt; 0.0f)
+<a name="l00322"></a>00322 *<span class="keyword">this</span> /= m;
+<a name="l00323"></a>00323 <span class="keywordflow">return</span> m;
+<a name="l00324"></a>00324 }
+<a name="l00325"></a>00325
+<a name="l00329"></a><a class="code" href="classPxVec4.html#22f2ffe5c7aaa8bd9489c7f5a773b89c">00329</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> multiply(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; a)<span class="keyword"> const</span>
+<a name="l00330"></a>00330 <span class="keyword"> </span>{
+<a name="l00331"></a>00331 <span class="keywordflow">return</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(x * a.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a>, y * a.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a>, z * a.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a>, w * a.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>);
+<a name="l00332"></a>00332 }
+<a name="l00333"></a>00333
+<a name="l00337"></a><a class="code" href="classPxVec4.html#d39b7a77905770d920c05ccfb36c5600">00337</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> minimum(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)<span class="keyword"> const</span>
+<a name="l00338"></a>00338 <span class="keyword"> </span>{
+<a name="l00339"></a>00339 <span class="keywordflow">return</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(<a class="code" href="group__foundation.html#g1bf6a07efe8c7593ff6a4b6eeedeae4d" title="The return value is the lesser of the two specified values.">PxMin</a>(x, v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a>), <a class="code" href="group__foundation.html#g1bf6a07efe8c7593ff6a4b6eeedeae4d" title="The return value is the lesser of the two specified values.">PxMin</a>(y, v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a>), <a class="code" href="group__foundation.html#g1bf6a07efe8c7593ff6a4b6eeedeae4d" title="The return value is the lesser of the two specified values.">PxMin</a>(z, v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a>), <a class="code" href="group__foundation.html#g1bf6a07efe8c7593ff6a4b6eeedeae4d" title="The return value is the lesser of the two specified values.">PxMin</a>(w, v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>));
+<a name="l00340"></a>00340 }
+<a name="l00341"></a>00341
+<a name="l00345"></a><a class="code" href="classPxVec4.html#ef37c724a2b72c3d191759c83fc844a0">00345</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> maximum(<span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)<span class="keyword"> const</span>
+<a name="l00346"></a>00346 <span class="keyword"> </span>{
+<a name="l00347"></a>00347 <span class="keywordflow">return</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(<a class="code" href="group__foundation.html#g88c618b0512d00a0571e52a7d2a73516" title="The return value is the greater of the two specified values.">PxMax</a>(x, v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a>), <a class="code" href="group__foundation.html#g88c618b0512d00a0571e52a7d2a73516" title="The return value is the greater of the two specified values.">PxMax</a>(y, v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a>), <a class="code" href="group__foundation.html#g88c618b0512d00a0571e52a7d2a73516" title="The return value is the greater of the two specified values.">PxMax</a>(z, v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a>), <a class="code" href="group__foundation.html#g88c618b0512d00a0571e52a7d2a73516" title="The return value is the greater of the two specified values.">PxMax</a>(w, v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>));
+<a name="l00348"></a>00348 }
+<a name="l00349"></a>00349
+<a name="l00350"></a><a class="code" href="classPxVec4.html#b55d79de5b719a1cf3d9156497c06ad3">00350</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> getXYZ()<span class="keyword"> const</span>
+<a name="l00351"></a>00351 <span class="keyword"> </span>{
+<a name="l00352"></a>00352 <span class="keywordflow">return</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>(x, y, z);
+<a name="l00353"></a>00353 }
+<a name="l00354"></a>00354
+<a name="l00358"></a><a class="code" href="classPxVec4.html#9277eee047f78d606c60d57c8726b1f1">00358</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> setZero()
+<a name="l00359"></a>00359 {
+<a name="l00360"></a>00360 x = y = z = w = 0.0f;
+<a name="l00361"></a>00361 }
+<a name="l00362"></a>00362
+<a name="l00363"></a><a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">00363</a> <span class="keywordtype">float</span> x, y, z, w;
+<a name="l00364"></a>00364 };
+<a name="l00365"></a>00365
+<a name="l00366"></a><a class="code" href="group__foundation.html#gd528b6ca0979b1eff7aa814637c1711c">00366</a> <a class="code" href="group__foundation.html#g6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <span class="keyword">static</span> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a> <a class="code" href="group__foundation.html#ga7415102b45174d3eda4d4f2f12127bc">operator*</a>(<span class="keywordtype">float</span> f, <span class="keyword">const</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>&amp; v)
+<a name="l00367"></a>00367 {
+<a name="l00368"></a>00368 <span class="keywordflow">return</span> <a class="code" href="classPxVec4.html" title="4 Element vector class.">PxVec4</a>(f * v.<a class="code" href="classPxVec4.html#aa55803d5db9a7cc8b2ee3c6f89cbe72">x</a>, f * v.<a class="code" href="classPxVec4.html#390f697b94d16b33cebb5d9f5be93e99">y</a>, f * v.<a class="code" href="classPxVec4.html#d3f9d14a8b8a56f9eb3bc2d570baf177">z</a>, f * v.<a class="code" href="classPxVec4.html#013d7a6e489c7361cbd602fcab6c9e29">w</a>);
+<a name="l00369"></a>00369 }
+<a name="l00370"></a>00370
+<a name="l00371"></a>00371 <span class="preprocessor">#if !PX_DOXYGEN</span>
+<a name="l00372"></a>00372 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span>
+<a name="l00373"></a>00373 <span class="preprocessor">#endif</span>
+<a name="l00374"></a>00374 <span class="preprocessor"></span>
+<a name="l00376"></a>00376 <span class="preprocessor">#endif // #ifndef PXFOUNDATION_PXVEC4_H</span>
+</pre></div></div>
+
+<hr style="width: 100%; height: 2px;"><br>
+Copyright &copy; 2008-2016 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
+</body>
+</html>