aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Documentation/PhysXAPI/files/PxMath_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/PxMath_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/PxMath_8h-source.html')
-rw-r--r--PhysX_3.4/Documentation/PhysXAPI/files/PxMath_8h-source.html280
1 files changed, 280 insertions, 0 deletions
diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/PxMath_8h-source.html b/PhysX_3.4/Documentation/PhysXAPI/files/PxMath_8h-source.html
new file mode 100644
index 00000000..9faa9abb
--- /dev/null
+++ b/PhysX_3.4/Documentation/PhysXAPI/files/PxMath_8h-source.html
@@ -0,0 +1,280 @@
+<html>
+ <head>
+ <title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxMath.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>PxMath.h</h1><a href="PxMath_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_PXMATH_H</span>
+<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define PXFOUNDATION_PXMATH_H</span>
+<a name="l00032"></a>00032 <span class="preprocessor"></span>
+<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="PxPreprocessor_8h.html">foundation/PxPreprocessor.h</a>"</span>
+<a name="l00038"></a>00038
+<a name="l00039"></a>00039 <span class="preprocessor">#if PX_VC</span>
+<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(push)</span>
+<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(disable : 4985) // 'symbol name': attributes not present on previous declaration</span>
+<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
+<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#include &lt;math.h&gt;</span>
+<a name="l00044"></a>00044 <span class="preprocessor">#if PX_VC</span>
+<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(pop)</span>
+<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
+<a name="l00047"></a>00047 <span class="preprocessor"></span>
+<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;float.h&gt;</span>
+<a name="l00049"></a>00049 <span class="preprocessor">#include "<a class="code" href="PxIntrinsics_8h.html">foundation/PxIntrinsics.h</a>"</span>
+<a name="l00050"></a>00050 <span class="preprocessor">#include "<a class="code" href="PxAssert_8h.html">foundation/PxAssert.h</a>"</span>
+<a name="l00051"></a>00051
+<a name="l00052"></a>00052 <span class="preprocessor">#if !PX_DOXYGEN</span>
+<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
+<a name="l00054"></a>00054 {
+<a name="l00055"></a>00055 <span class="preprocessor">#endif</span>
+<a name="l00056"></a>00056 <span class="preprocessor"></span>
+<a name="l00057"></a>00057 <span class="comment">// constants</span>
+<a name="l00058"></a><a class="code" href="group__foundation.html#gbcd49a429b8119de54375b3538ae8a8d">00058</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gbcd49a429b8119de54375b3538ae8a8d">PxPi</a> = float(3.141592653589793);
+<a name="l00059"></a><a class="code" href="group__foundation.html#g17a46314a8577460d3840466cb12a331">00059</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g17a46314a8577460d3840466cb12a331">PxHalfPi</a> = float(1.57079632679489661923);
+<a name="l00060"></a><a class="code" href="group__foundation.html#g3773ce018f51c7f8f2c061faab2d411b">00060</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g3773ce018f51c7f8f2c061faab2d411b">PxTwoPi</a> = float(6.28318530717958647692);
+<a name="l00061"></a><a class="code" href="group__foundation.html#gd5970e1d62cfec4e6872517638e7ee61">00061</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gd5970e1d62cfec4e6872517638e7ee61">PxInvPi</a> = float(0.31830988618379067154);
+<a name="l00062"></a><a class="code" href="group__foundation.html#gee8f7127123da8f1a6aba82ee0bab638">00062</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gee8f7127123da8f1a6aba82ee0bab638">PxInvTwoPi</a> = float(0.15915494309189533577);
+<a name="l00063"></a><a class="code" href="group__foundation.html#gadbc7232bb8117014d359b6e63967170">00063</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gadbc7232bb8117014d359b6e63967170">PxPiDivTwo</a> = float(1.57079632679489661923);
+<a name="l00064"></a><a class="code" href="group__foundation.html#gcb4cd96e4188d5cc377ab184d5eef081">00064</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gcb4cd96e4188d5cc377ab184d5eef081">PxPiDivFour</a> = float(0.78539816339744830962);
+<a name="l00065"></a>00065
+<a name="l00069"></a>00069 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
+<a name="l00070"></a><a class="code" href="group__foundation.html#g88c618b0512d00a0571e52a7d2a73516">00070</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> T <a class="code" href="group__foundation.html#g88c618b0512d00a0571e52a7d2a73516" title="The return value is the greater of the two specified values.">PxMax</a>(T a, T b)
+<a name="l00071"></a>00071 {
+<a name="l00072"></a>00072 <span class="keywordflow">return</span> a &lt; b ? b : a;
+<a name="l00073"></a>00073 }
+<a name="l00074"></a>00074
+<a name="l00076"></a>00076 <span class="keyword">template</span> &lt;&gt;
+<a name="l00077"></a><a class="code" href="group__foundation.html#g026c005ccf0e10cc78e9e285809491d2">00077</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g88c618b0512d00a0571e52a7d2a73516" title="The return value is the greater of the two specified values.">PxMax</a>(<span class="keywordtype">float</span> a, <span class="keywordtype">float</span> b)
+<a name="l00078"></a>00078 {
+<a name="l00079"></a>00079 <span class="keywordflow">return</span> intrinsics::selectMax(a, b);
+<a name="l00080"></a>00080 }
+<a name="l00081"></a>00081
+<a name="l00085"></a>00085 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
+<a name="l00086"></a><a class="code" href="group__foundation.html#g1bf6a07efe8c7593ff6a4b6eeedeae4d">00086</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> T <a class="code" href="group__foundation.html#g1bf6a07efe8c7593ff6a4b6eeedeae4d" title="The return value is the lesser of the two specified values.">PxMin</a>(T a, T b)
+<a name="l00087"></a>00087 {
+<a name="l00088"></a>00088 <span class="keywordflow">return</span> a &lt; b ? a : b;
+<a name="l00089"></a>00089 }
+<a name="l00090"></a>00090
+<a name="l00091"></a>00091 <span class="keyword">template</span> &lt;&gt;
+<a name="l00093"></a><a class="code" href="group__foundation.html#g03bc85cfd03803b1d4c0a69a95b3c0c6">00093</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g1bf6a07efe8c7593ff6a4b6eeedeae4d" title="The return value is the lesser of the two specified values.">PxMin</a>(<span class="keywordtype">float</span> a, <span class="keywordtype">float</span> b)
+<a name="l00094"></a>00094 {
+<a name="l00095"></a>00095 <span class="keywordflow">return</span> intrinsics::selectMin(a, b);
+<a name="l00096"></a>00096 }
+<a name="l00097"></a>00097
+<a name="l00098"></a>00098 <span class="comment">/*</span>
+<a name="l00099"></a>00099 <span class="comment">Many of these are just implemented as PX_CUDA_CALLABLE PX_FORCE_INLINE calls to the C lib right now,</span>
+<a name="l00100"></a>00100 <span class="comment">but later we could replace some of them with some approximations or more</span>
+<a name="l00101"></a>00101 <span class="comment">clever stuff.</span>
+<a name="l00102"></a>00102 <span class="comment">*/</span>
+<a name="l00103"></a>00103
+<a name="l00107"></a><a class="code" href="group__foundation.html#gf72e1dce9e874da7b92cbc0ea5e4e30d">00107</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gf72e1dce9e874da7b92cbc0ea5e4e30d" title="abs returns the absolute value of its argument.">PxAbs</a>(<span class="keywordtype">float</span> a)
+<a name="l00108"></a>00108 {
+<a name="l00109"></a>00109 <span class="keywordflow">return</span> intrinsics::abs(a);
+<a name="l00110"></a>00110 }
+<a name="l00111"></a>00111
+<a name="l00112"></a><a class="code" href="group__foundation.html#gbb5e8a2eee08bb16174c87dedbe49498">00112</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> <span class="keywordtype">bool</span> <a class="code" href="group__foundation.html#gbb5e8a2eee08bb16174c87dedbe49498">PxEquals</a>(<span class="keywordtype">float</span> a, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> eps)
+<a name="l00113"></a>00113 {
+<a name="l00114"></a>00114 <span class="keywordflow">return</span> (<a class="code" href="group__foundation.html#gf72e1dce9e874da7b92cbc0ea5e4e30d" title="abs returns the absolute value of its argument.">PxAbs</a>(a - b) &lt; eps);
+<a name="l00115"></a>00115 }
+<a name="l00116"></a>00116
+<a name="l00120"></a><a class="code" href="group__foundation.html#g50d4d7247809d26270bd731bdc394793">00120</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#gf72e1dce9e874da7b92cbc0ea5e4e30d" title="abs returns the absolute value of its argument.">PxAbs</a>(<span class="keywordtype">double</span> a)
+<a name="l00121"></a>00121 {
+<a name="l00122"></a>00122 return ::fabs(a);
+<a name="l00123"></a>00123 }
+<a name="l00124"></a>00124
+<a name="l00128"></a><a class="code" href="group__foundation.html#gdf64a1111c7dfd07290aed0cf3277098">00128</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> int32_t <a class="code" href="group__foundation.html#gf72e1dce9e874da7b92cbc0ea5e4e30d" title="abs returns the absolute value of its argument.">PxAbs</a>(int32_t a)
+<a name="l00129"></a>00129 {
+<a name="l00130"></a>00130 return ::abs(a);
+<a name="l00131"></a>00131 }
+<a name="l00132"></a>00132
+<a name="l00136"></a>00136 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
+<a name="l00137"></a><a class="code" href="group__foundation.html#g35874bb9e60edb742a0c07abd5713a0c">00137</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> T <a class="code" href="group__foundation.html#g35874bb9e60edb742a0c07abd5713a0c" title="Clamps v to the range [hi,lo].">PxClamp</a>(T v, T lo, T hi)
+<a name="l00138"></a>00138 {
+<a name="l00139"></a>00139 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(lo &lt;= hi);
+<a name="l00140"></a>00140 <span class="keywordflow">return</span> <a class="code" href="group__foundation.html#g1bf6a07efe8c7593ff6a4b6eeedeae4d" title="The return value is the lesser of the two specified values.">PxMin</a>(hi, <a class="code" href="group__foundation.html#g88c618b0512d00a0571e52a7d2a73516" title="The return value is the greater of the two specified values.">PxMax</a>(lo, v));
+<a name="l00141"></a>00141 }
+<a name="l00142"></a>00142
+<a name="l00144"></a><a class="code" href="group__foundation.html#g11d5e4e77acad728886b380b5f3806f0">00144</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g11d5e4e77acad728886b380b5f3806f0" title="Square root.">PxSqrt</a>(<span class="keywordtype">float</span> a)
+<a name="l00145"></a>00145 {
+<a name="l00146"></a>00146 <span class="keywordflow">return</span> intrinsics::sqrt(a);
+<a name="l00147"></a>00147 }
+<a name="l00148"></a>00148
+<a name="l00150"></a><a class="code" href="group__foundation.html#g23fec839e8daf10494d43640dca49e09">00150</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#g11d5e4e77acad728886b380b5f3806f0" title="Square root.">PxSqrt</a>(<span class="keywordtype">double</span> a)
+<a name="l00151"></a>00151 {
+<a name="l00152"></a>00152 return ::sqrt(a);
+<a name="l00153"></a>00153 }
+<a name="l00154"></a>00154
+<a name="l00156"></a><a class="code" href="group__foundation.html#gcd945627f345ba03e83a30387ab99dea">00156</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gcd945627f345ba03e83a30387ab99dea" title="reciprocal square root.">PxRecipSqrt</a>(<span class="keywordtype">float</span> a)
+<a name="l00157"></a>00157 {
+<a name="l00158"></a>00158 <span class="keywordflow">return</span> intrinsics::recipSqrt(a);
+<a name="l00159"></a>00159 }
+<a name="l00160"></a>00160
+<a name="l00162"></a><a class="code" href="group__foundation.html#g2e96f326a9b29ecb2cbe00f2f7662cf0">00162</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#gcd945627f345ba03e83a30387ab99dea" title="reciprocal square root.">PxRecipSqrt</a>(<span class="keywordtype">double</span> a)
+<a name="l00163"></a>00163 {
+<a name="l00164"></a>00164 <span class="keywordflow">return</span> 1 / ::sqrt(a);
+<a name="l00165"></a>00165 }
+<a name="l00166"></a>00166
+<a name="l00168"></a>00168
+<a name="l00170"></a><a class="code" href="group__foundation.html#g98f571cc01fc3aa0e73e215c27ab8069">00170</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g98f571cc01fc3aa0e73e215c27ab8069" title="trigonometry -- all angles are in radians.">PxSin</a>(<span class="keywordtype">float</span> a)
+<a name="l00171"></a>00171 {
+<a name="l00172"></a>00172 <span class="keywordflow">return</span> intrinsics::sin(a);
+<a name="l00173"></a>00173 }
+<a name="l00174"></a>00174
+<a name="l00176"></a><a class="code" href="group__foundation.html#g56576468182972ec8511c7dd20f47a4d">00176</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#g98f571cc01fc3aa0e73e215c27ab8069" title="trigonometry -- all angles are in radians.">PxSin</a>(<span class="keywordtype">double</span> a)
+<a name="l00177"></a>00177 {
+<a name="l00178"></a>00178 return ::sin(a);
+<a name="l00179"></a>00179 }
+<a name="l00180"></a>00180
+<a name="l00182"></a><a class="code" href="group__foundation.html#gcc501523ad3ab46c5a061c4442d10fcf">00182</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gcc501523ad3ab46c5a061c4442d10fcf" title="Cosine of an angle (Unit: Radians).">PxCos</a>(<span class="keywordtype">float</span> a)
+<a name="l00183"></a>00183 {
+<a name="l00184"></a>00184 <span class="keywordflow">return</span> intrinsics::cos(a);
+<a name="l00185"></a>00185 }
+<a name="l00186"></a>00186
+<a name="l00188"></a><a class="code" href="group__foundation.html#g903d59eeddf0328e54f1caf8efddf2fc">00188</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#gcc501523ad3ab46c5a061c4442d10fcf" title="Cosine of an angle (Unit: Radians).">PxCos</a>(<span class="keywordtype">double</span> a)
+<a name="l00189"></a>00189 {
+<a name="l00190"></a>00190 return ::cos(a);
+<a name="l00191"></a>00191 }
+<a name="l00192"></a>00192
+<a name="l00197"></a><a class="code" href="group__foundation.html#g7b8deaee36a7d45581d4706ae6c9905b">00197</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g7b8deaee36a7d45581d4706ae6c9905b" title="Tangent of an angle. Unit: Radians.">PxTan</a>(<span class="keywordtype">float</span> a)
+<a name="l00198"></a>00198 {
+<a name="l00199"></a>00199 return ::tanf(a);
+<a name="l00200"></a>00200 }
+<a name="l00201"></a>00201
+<a name="l00206"></a><a class="code" href="group__foundation.html#g3ad36c60750fd7773dd217aa681ee0d1">00206</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#g7b8deaee36a7d45581d4706ae6c9905b" title="Tangent of an angle. Unit: Radians.">PxTan</a>(<span class="keywordtype">double</span> a)
+<a name="l00207"></a>00207 {
+<a name="l00208"></a>00208 return ::tan(a);
+<a name="l00209"></a>00209 }
+<a name="l00210"></a>00210
+<a name="l00216"></a><a class="code" href="group__foundation.html#g437cafb349b7bc7d1d912ab27392bfe9">00216</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g437cafb349b7bc7d1d912ab27392bfe9" title="Arcsine. Returns angle between -PI/2 and PI/2 in radians Unit: Radians.">PxAsin</a>(<span class="keywordtype">float</span> f)
+<a name="l00217"></a>00217 {
+<a name="l00218"></a>00218 return ::asinf(<a class="code" href="group__foundation.html#g35874bb9e60edb742a0c07abd5713a0c" title="Clamps v to the range [hi,lo].">PxClamp</a>(f, -1.0f, 1.0f));
+<a name="l00219"></a>00219 }
+<a name="l00220"></a>00220
+<a name="l00226"></a><a class="code" href="group__foundation.html#gb6253e62a4ebc9be4560c54756aea29a">00226</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#g437cafb349b7bc7d1d912ab27392bfe9" title="Arcsine. Returns angle between -PI/2 and PI/2 in radians Unit: Radians.">PxAsin</a>(<span class="keywordtype">double</span> f)
+<a name="l00227"></a>00227 {
+<a name="l00228"></a>00228 return ::asin(<a class="code" href="group__foundation.html#g35874bb9e60edb742a0c07abd5713a0c" title="Clamps v to the range [hi,lo].">PxClamp</a>(f, -1.0, 1.0));
+<a name="l00229"></a>00229 }
+<a name="l00230"></a>00230
+<a name="l00236"></a><a class="code" href="group__foundation.html#g0953977efc7599071aefadc35e842f97">00236</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g0953977efc7599071aefadc35e842f97" title="Arccosine. Returns angle between 0 and PI in radians Unit: Radians.">PxAcos</a>(<span class="keywordtype">float</span> f)
+<a name="l00237"></a>00237 {
+<a name="l00238"></a>00238 return ::acosf(<a class="code" href="group__foundation.html#g35874bb9e60edb742a0c07abd5713a0c" title="Clamps v to the range [hi,lo].">PxClamp</a>(f, -1.0f, 1.0f));
+<a name="l00239"></a>00239 }
+<a name="l00240"></a>00240
+<a name="l00246"></a><a class="code" href="group__foundation.html#gfed20db31b2806b91c6b6745bac2f9ae">00246</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#g0953977efc7599071aefadc35e842f97" title="Arccosine. Returns angle between 0 and PI in radians Unit: Radians.">PxAcos</a>(<span class="keywordtype">double</span> f)
+<a name="l00247"></a>00247 {
+<a name="l00248"></a>00248 return ::acos(<a class="code" href="group__foundation.html#g35874bb9e60edb742a0c07abd5713a0c" title="Clamps v to the range [hi,lo].">PxClamp</a>(f, -1.0, 1.0));
+<a name="l00249"></a>00249 }
+<a name="l00250"></a>00250
+<a name="l00256"></a><a class="code" href="group__foundation.html#gea3adf6a4e304f82c6646618ad633bd2">00256</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gea3adf6a4e304f82c6646618ad633bd2" title="ArcTangent. Returns angle between -PI/2 and PI/2 in radians Unit: Radians.">PxAtan</a>(<span class="keywordtype">float</span> a)
+<a name="l00257"></a>00257 {
+<a name="l00258"></a>00258 return ::atanf(a);
+<a name="l00259"></a>00259 }
+<a name="l00260"></a>00260
+<a name="l00266"></a><a class="code" href="group__foundation.html#g9cf210fa59d59f641438771f3c24102f">00266</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#gea3adf6a4e304f82c6646618ad633bd2" title="ArcTangent. Returns angle between -PI/2 and PI/2 in radians Unit: Radians.">PxAtan</a>(<span class="keywordtype">double</span> a)
+<a name="l00267"></a>00267 {
+<a name="l00268"></a>00268 return ::atan(a);
+<a name="l00269"></a>00269 }
+<a name="l00270"></a>00270
+<a name="l00276"></a><a class="code" href="group__foundation.html#g3b820cf45fee058a4083d955daa02154">00276</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g3b820cf45fee058a4083d955daa02154" title="Arctangent of (x/y) with correct sign. Returns angle between -PI and PI in radians...">PxAtan2</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y)
+<a name="l00277"></a>00277 {
+<a name="l00278"></a>00278 return ::atan2f(x, y);
+<a name="l00279"></a>00279 }
+<a name="l00280"></a>00280
+<a name="l00286"></a><a class="code" href="group__foundation.html#gddaa9e455c2d0ae28111358f6c426056">00286</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> <span class="keywordtype">double</span> <a class="code" href="group__foundation.html#g3b820cf45fee058a4083d955daa02154" title="Arctangent of (x/y) with correct sign. Returns angle between -PI and PI in radians...">PxAtan2</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y)
+<a name="l00287"></a>00287 {
+<a name="l00288"></a>00288 return ::atan2(x, y);
+<a name="l00289"></a>00289 }
+<a name="l00290"></a>00290
+<a name="l00292"></a><a class="code" href="group__foundation.html#gd6de0f4af98c5c5280b8fe695dc87318">00292</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> <span class="keywordtype">bool</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>(<span class="keywordtype">float</span> f)
+<a name="l00293"></a>00293 {
+<a name="l00294"></a>00294 <span class="keywordflow">return</span> intrinsics::isFinite(f);
+<a name="l00295"></a>00295 }
+<a name="l00296"></a>00296
+<a name="l00298"></a><a class="code" href="group__foundation.html#ga689e47bbd54cfc6a4a1ce5bc7f1a2f6">00298</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> <span class="keywordtype">bool</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>(<span class="keywordtype">double</span> f)
+<a name="l00299"></a>00299 {
+<a name="l00300"></a>00300 <span class="keywordflow">return</span> intrinsics::isFinite(f);
+<a name="l00301"></a>00301 }
+<a name="l00302"></a>00302
+<a name="l00303"></a><a class="code" href="group__foundation.html#ge0a6cff0842c2d8b1b78656bcd680e1c">00303</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#ge0a6cff0842c2d8b1b78656bcd680e1c">PxFloor</a>(<span class="keywordtype">float</span> a)
+<a name="l00304"></a>00304 {
+<a name="l00305"></a>00305 return ::floorf(a);
+<a name="l00306"></a>00306 }
+<a name="l00307"></a>00307
+<a name="l00308"></a><a class="code" href="group__foundation.html#gf478a0d9ce3c6ec717d8fc74684f6cee">00308</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#gf478a0d9ce3c6ec717d8fc74684f6cee">PxExp</a>(<span class="keywordtype">float</span> a)
+<a name="l00309"></a>00309 {
+<a name="l00310"></a>00310 return ::expf(a);
+<a name="l00311"></a>00311 }
+<a name="l00312"></a>00312
+<a name="l00313"></a><a class="code" href="group__foundation.html#g9c45606642752cb98a361b359482c476">00313</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g9c45606642752cb98a361b359482c476">PxCeil</a>(<span class="keywordtype">float</span> a)
+<a name="l00314"></a>00314 {
+<a name="l00315"></a>00315 return ::ceilf(a);
+<a name="l00316"></a>00316 }
+<a name="l00317"></a>00317
+<a name="l00318"></a><a class="code" href="group__foundation.html#g250e461f84db027c14d3f1e33b8adc9c">00318</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#g250e461f84db027c14d3f1e33b8adc9c">PxSign</a>(<span class="keywordtype">float</span> a)
+<a name="l00319"></a>00319 {
+<a name="l00320"></a>00320 <span class="keywordflow">return</span> physx::intrinsics::sign(a);
+<a name="l00321"></a>00321 }
+<a name="l00322"></a>00322
+<a name="l00323"></a><a class="code" href="group__foundation.html#ge34aa1b4d7a85dbe98e9ed2df79c17a0">00323</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#ge34aa1b4d7a85dbe98e9ed2df79c17a0">PxPow</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y)
+<a name="l00324"></a>00324 {
+<a name="l00325"></a>00325 return ::powf(x, y);
+<a name="l00326"></a>00326 }
+<a name="l00327"></a>00327
+<a name="l00328"></a><a class="code" href="group__foundation.html#ge43dc1649f209f1142a57cf14b200ad2">00328</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> <span class="keywordtype">float</span> <a class="code" href="group__foundation.html#ge43dc1649f209f1142a57cf14b200ad2">PxLog</a>(<span class="keywordtype">float</span> x)
+<a name="l00329"></a>00329 {
+<a name="l00330"></a>00330 return ::logf(x);
+<a name="l00331"></a>00331 }
+<a name="l00332"></a>00332
+<a name="l00333"></a>00333 <span class="preprocessor">#if !PX_DOXYGEN</span>
+<a name="l00334"></a>00334 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span>
+<a name="l00335"></a>00335 <span class="preprocessor">#endif</span>
+<a name="l00336"></a>00336 <span class="preprocessor"></span>
+<a name="l00338"></a>00338 <span class="preprocessor">#endif // #ifndef PXFOUNDATION_PXMATH_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>