PhysX SDK 3.2 API Reference: PxMath.h File Reference

PhysX SDK 3.2 API

PxMath.h File Reference

#include <math.h>
#include <float.h>
#include "foundation/PxIntrinsics.h"
#include "foundation/PxAssert.h"

Include dependency graph for PxMath.h:

foundation/PxIntrinsics.hfoundation/PxAssert.hfoundation/PxPreprocessor.hfoundation/Px.hfoundation/PxVersionNumber.hfoundation/PxSimpleTypes.h

This graph shows which files directly or indirectly include this file:

PxGeometry.hPxPhysicsAPI.hPxVec3.hPxConstraintDesc.hPxPlane.hPxVec4.hPxVec2.hPxJointLimit.hPxShape.hPxGeometryHelpers.hPxBoxGeometry.hPxSphereGeometry.hPxCapsuleGeometry.hPxPlaneGeometry.hPxConvexMeshGeometry.hPxTriangleMeshGeometry.hPxSimulationStatistics.hPxControllerObstacles.hPxBatchQuery.hPxContactModifyCallback.hPxShapeExt.hPxHeightFieldGeometry.hPxScene.hPxClothTypes.hPxSceneQueryReport.hPxContact.hPxSimulationEventCallback.hPxMat33.hPxRenderBuffer.hPxQuat.hPxSimpleTriangleMesh.hPxClothMeshDesc.hPxTriangle.hPxTriangleMesh.hPxConvexMeshDesc.hPxParticleCreationData.hPxVehicleComponents.hPxVehicleUtilTelemetry.hPxPhysics.hPxCloth.hPxConstraint.hPxJoint.hPxPrismaticJoint.hPxRevoluteJoint.hPxSphericalJoint.hPxD6Joint.hPxMat44.hPxTransform.hPxSimpleFactory.h

Go to the source code of this file.


Functions

template<class T >
PX_CUDA_CALLABLE PX_FORCE_INLINE T PxMax (T a, T b)
 The return value is the greater of the two specified values.
template<>
PX_CUDA_CALLABLE
PX_FORCE_INLINE float 
PxMax (float a, float b)
 overload for float to use fsel on xbox
template<class T >
PX_CUDA_CALLABLE PX_FORCE_INLINE T PxMin (T a, T b)
 The return value is the lesser of the two specified values.
template<>
PX_CUDA_CALLABLE
PX_FORCE_INLINE float 
PxMin (float a, float b)
 overload for float to use fsel on xbox
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxAbs (PxF32 a)
 abs returns the absolute value of its argument.
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.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxI32 
PxAbs (PxI32 a)
 abs returns the absolute value of its argument.
template<class T >
PX_CUDA_CALLABLE PX_FORCE_INLINE T PxClamp (T v, T lo, T hi)
 Clamps v to the range [hi,lo].
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxSqrt (PxF32 a)
 Square root.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxSqrt (PxF64 a)
 Square root.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxRecipSqrt (PxF32 a)
 reciprocal square root.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxRecipSqrt (PxF64 a)
 reciprocal square root.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxSin (PxF32 a)
 trigonometry -- all angles are in radians.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxSin (PxF64 a)
 Sine of an angle ( Unit: Radians ).
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxCos (PxF32 a)
 Cosine of an angle (Unit: Radians).
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxCos (PxF64 a)
 Cosine of an angle (Unit: Radians).
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxTan (PxF32 a)
 Tangent of an angle. Unit: Radians.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxTan (PxF64 a)
 Tangent of an angle. Unit: Radians.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxAsin (PxF32 f)
 Arcsine. Returns angle between -PI/2 and PI/2 in radians Unit: Radians.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxAsin (PxF64 f)
 Arcsine. Returns angle between -PI/2 and PI/2 in radians Unit: Radians.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxAcos (PxF32 f)
 Arccosine. Returns angle between 0 and PI in radians Unit: Radians.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxAcos (PxF64 f)
 Arccosine. Returns angle between 0 and PI in radians Unit: Radians.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF32 
PxAtan (PxF32 a)
 ArcTangent. Returns angle between -PI/2 and PI/2 in radians Unit: Radians.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxF64 
PxAtan (PxF64 a)
 ArcTangent. Returns angle between -PI/2 and PI/2 in radians Unit: Radians.
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.
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.
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.
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.
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)



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