PhysX SDK 3.2 API Reference: PxBounds3 Class Reference

PhysX SDK 3.2 API

PxBounds3 Class Reference
[Foundation]

Class representing 3D range or axis aligned bounding box. More...

#include <PxBounds3.h>

Collaboration diagram for PxBounds3:

List of all members.


Public Member Functions

PX_CUDA_CALLABLE PX_FORCE_INLINE PxBounds3 ()
 Default constructor, not performing any initialization for performance reason.
PX_CUDA_CALLABLE PX_FORCE_INLINE PxBounds3 (const PxVec3 &minimum, const PxVec3 &maximum)
 Construct from two bounding points.
PX_CUDA_CALLABLE
PX_FORCE_INLINE void 
setEmpty ()
 Sets empty to true.
PX_CUDA_CALLABLE
PX_FORCE_INLINE void 
setInfinite ()
 Sets infinite bounds.
PX_CUDA_CALLABLE
PX_FORCE_INLINE void 
include (const PxVec3 &v)
 expands the volume to include v
PX_CUDA_CALLABLE
PX_FORCE_INLINE void 
include (const PxBounds3 &b)
 expands the volume to include b.
PX_CUDA_CALLABLE
PX_FORCE_INLINE bool 
isEmpty () const
PX_CUDA_CALLABLE
PX_FORCE_INLINE bool 
intersects (const PxBounds3 &b) const
 indicates whether the intersection of this and b is empty or not.
PX_CUDA_CALLABLE
PX_FORCE_INLINE bool 
intersects1D (const PxBounds3 &a, PxU32 axis) const
 computes the 1D-intersection between two AABBs, on a given axis.
PX_CUDA_CALLABLE
PX_FORCE_INLINE bool 
contains (const PxVec3 &v) const
 indicates if these bounds contain v.
PX_CUDA_CALLABLE
PX_FORCE_INLINE bool 
isInside (const PxBounds3 &box) const
 checks a box is inside another box.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxVec3 
getCenter () const
 returns the center of this axis aligned box.
PX_CUDA_CALLABLE
PX_FORCE_INLINE float 
getCenter (PxU32 axis) const
 get component of the box's center along a given axis
PX_CUDA_CALLABLE
PX_FORCE_INLINE float 
getExtents (PxU32 axis) const
 get component of the box's extents along a given axis
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxVec3 
getDimensions () const
 returns the dimensions (width/height/depth) of this axis aligned box.
PX_CUDA_CALLABLE
PX_FORCE_INLINE PxVec3 
getExtents () const
 returns the extents, which are half of the width/height/depth.
PX_CUDA_CALLABLE
PX_FORCE_INLINE void 
scale (PxF32 scale)
 scales the AABB.
PX_CUDA_CALLABLE
PX_FORCE_INLINE void 
fatten (PxReal distance)
PX_CUDA_CALLABLE
PX_FORCE_INLINE bool 
isFinite () const

Static Public Member Functions

static PX_CUDA_CALLABLE
PX_FORCE_INLINE PxBounds3 
empty ()
 Return empty bounds.
static PX_CUDA_CALLABLE
PX_FORCE_INLINE PxBounds3 
boundsOfPoints (const PxVec3 &v0, const PxVec3 &v1)
 returns the AABB containing v0 and v1.
static PX_CUDA_CALLABLE
PX_FORCE_INLINE PxBounds3 
centerExtents (const PxVec3 &center, const PxVec3 &extent)
 returns the AABB from center and extents vectors.
static PX_CUDA_CALLABLE
PX_INLINE PxBounds3 
basisExtent (const PxVec3 &center, const PxMat33 &basis, const PxVec3 &extent)
 Construct from center, extent, and (not necessarily orthogonal) basis.
static PX_CUDA_CALLABLE
PX_INLINE PxBounds3 
poseExtent (const PxTransform &pose, const PxVec3 &extent)
 Construct from pose and extent.
static PX_CUDA_CALLABLE
PX_INLINE PxBounds3 
transform (const PxMat33 &matrix, const PxBounds3 &bounds)
 gets the transformed bounds of the passed AABB (resulting in a bigger AABB).
static PX_CUDA_CALLABLE
PX_INLINE PxBounds3 
transform (const PxTransform &transform, const PxBounds3 &bounds)
 gets the transformed bounds of the passed AABB (resulting in a bigger AABB).

Public Attributes

PxVec3 minimum
PxVec3 maximum

Detailed Description

Class representing 3D range or axis aligned bounding box.

Stored as minimum and maximum extent corners. Alternate representation would be center and dimensions. May be empty or nonempty. If not empty, minimum <= maximum has to hold.


Constructor & Destructor Documentation

PX_CUDA_CALLABLE PX_FORCE_INLINE PxBounds3::PxBounds3 (  )  [inline]

Default constructor, not performing any initialization for performance reason.

Remarks:
Use empty() function below to construct empty bounds.

Referenced by basisExtent(), boundsOfPoints(), centerExtents(), and empty().


Member Data Documentation


The documentation for this class was generated from the following file:



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