PxPlaneGeometry.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12 
13 
14 #ifndef PX_PHYSICS_NX_PLANE_GEOMETRY
15 #define PX_PHYSICS_NX_PLANE_GEOMETRY
16 
19 #include "foundation/PxPlane.h"
20 #include "foundation/PxTransform.h"
21 #include "geometry/PxGeometry.h"
22 
23 #ifndef PX_DOXYGEN
24 namespace physx
25 {
26 #endif
27 
41 class PxPlaneGeometry : public PxGeometry
42 {
43 public:
45 
51  PX_INLINE bool isValid() const;
52 };
53 
54 
56 {
57  if (mType != PxGeometryType::ePLANE)
58  return false;
59 
60  return true;
61 }
62 
63 
71 
80 {
81  return transform.transform(PxPlane(1.f,0.f,0.f,0.f));
82 }
83 
84 
85 #ifndef PX_DOXYGEN
86 } // namespace physx
87 #endif
88 
90 #endif


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