Enumerations | Functions | Variables
PxMath.h File Reference
#include "foundation/PxPreprocessor.h"
#include <math.h>
#include <float.h>
#include "foundation/PxIntrinsics.h"
#include "foundation/PxAssert.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  PxZERO { PxZero }
 
enum  PxIDENTITY { PxIdentity }
 

Functions

template<class T >
PX_CUDA_CALLABLE PX_FORCE_INLINEPxMax (T a, T b)
 The return value is the greater of the two specified values. More...
 
template<>
PX_CUDA_CALLABLE
PX_FORCE_INLINE float 
PxMax (float a, float b)
 overload for float to use fsel on xbox More...
 
template<class T >
PX_CUDA_CALLABLE PX_FORCE_INLINEPxMin (T a, T b)
 The return value is the lesser of the two specified values. More...
 
template<>
PX_CUDA_CALLABLE
PX_FORCE_INLINE float 
PxMin (float a, float b)
 overload for float to use fsel on xbox More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxAbs (PxF32 a)
 abs returns the absolute value of its argument. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE bool 
PxEquals (PxF32 a, PxF32 b, PxF32 eps)
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxAbs (PxF64 a)
 abs returns the absolute value of its argument. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxI32 
PxAbs (PxI32 a)
 abs returns the absolute value of its argument. More...
 
template<class T >
PX_CUDA_CALLABLE PX_FORCE_INLINEPxClamp (T v, T lo, T hi)
 Clamps v to the range [hi,lo]. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxSqrt (PxF32 a)
 Square root. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxSqrt (PxF64 a)
 Square root. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxRecipSqrt (PxF32 a)
 reciprocal square root. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxRecipSqrt (PxF64 a)
 reciprocal square root. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxSin (PxF32 a)
 trigonometry – all angles are in radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxSin (PxF64 a)
 Sine of an angle ( Unit: Radians ) More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxCos (PxF32 a)
 Cosine of an angle (Unit: Radians) More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxCos (PxF64 a)
 Cosine of an angle (Unit: Radians) More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxTan (PxF32 a)
 Tangent of an angle. Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxTan (PxF64 a)
 Tangent of an angle. Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxAsin (PxF32 f)
 Arcsine. Returns angle between -PI/2 and PI/2 in radians Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxAsin (PxF64 f)
 Arcsine. Returns angle between -PI/2 and PI/2 in radians Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxAcos (PxF32 f)
 Arccosine. Returns angle between 0 and PI in radians Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxAcos (PxF64 f)
 Arccosine. Returns angle between 0 and PI in radians Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxAtan (PxF32 a)
 ArcTangent. Returns angle between -PI/2 and PI/2 in radians Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxAtan (PxF64 a)
 ArcTangent. Returns angle between -PI/2 and PI/2 in radians Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxAtan2 (PxF32 x, PxF32 y)
 Arctangent of (x/y) with correct sign. Returns angle between -PI and PI in radians Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxAtan2 (PxF64 x, PxF64 y)
 Arctangent of (x/y) with correct sign. Returns angle between -PI and PI in radians Unit: Radians. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE bool 
PxIsFinite (PxF32 f)
 returns true if the passed number is a finite floating point number as opposed to INF, NAN, etc. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE bool 
PxIsFinite (PxF64 f)
 returns true if the passed number is a finite floating point number as opposed to INF, NAN, etc. More...
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxFloor (PxF32 a)
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxExp (PxF32 a)
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxCeil (PxF32 a)
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxSign (PxF32 a)
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxPow (PxF32 x, PxF32 y)
 
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxLog (PxF32 x)
 

Variables

static const PxReal PxPi = PxReal(3.141592653589793)
 
static const PxReal PxHalfPi = PxReal(1.57079632679489661923)
 
static const PxReal PxTwoPi = PxReal(6.28318530717958647692)
 
static const PxReal PxInvPi = PxReal(0.31830988618379067154)
 
static const PxReal PxInvTwoPi = PxReal(0.15915494309189533577)
 
static const PxReal PxPiDivTwo = PxReal(1.57079632679489661923)
 
static const PxReal PxPiDivFour = PxReal(0.78539816339744830962)
 


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com