PxTetrahedron.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed to you
2 // under a form of NVIDIA software license agreement provided separately to you.
3 //
4 // Notice
5 // NVIDIA Corporation and its licensors retain all intellectual property and
6 // proprietary rights in and to this software and related documentation and
7 // any modifications thereto. Any use, reproduction, disclosure, or
8 // distribution of this software and related documentation without an express
9 // license agreement from NVIDIA Corporation is strictly prohibited.
10 //
11 // ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES
12 // NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
13 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,
14 // MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
15 //
16 // Information and code furnished is believed to be accurate and reliable.
17 // However, NVIDIA Corporation assumes no responsibility for the consequences of use of such
18 // information or for any infringement of patents or other rights of third parties that may
19 // result from its use. No license is granted by implication or otherwise under any patent
20 // or patent rights of NVIDIA Corporation. Details are subject to change without notice.
21 // This code supersedes and replaces all information previously supplied.
22 // NVIDIA Corporation products are not authorized for use as critical
23 // components in life support devices or systems without express written approval of
24 // NVIDIA Corporation.
25 //
26 // Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.
27 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
28 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
29 
30 
31 #ifndef PX_PHYSICS_GEOMUTILS_PX_TETRAHEDRON
32 #define PX_PHYSICS_GEOMUTILS_PX_TETRAHEDRON
33 
38 #include "foundation/PxVec3.h"
39 
40 #if !PX_DOXYGEN
41 namespace physx
42 {
43 #endif
44 
49  {
50  public:
55 
64  PX_FORCE_INLINE PxTetrahedron(const PxVec3& p0, const PxVec3& p1, const PxVec3& p2, const PxVec3& p3)
65  {
66  verts[0] = p0;
67  verts[1] = p1;
68  verts[2] = p2;
69  verts[3] = p3;
70  }
71 
78  {
79  verts[0] = tetrahedron.verts[0];
80  verts[1] = tetrahedron.verts[1];
81  verts[2] = tetrahedron.verts[2];
82  verts[3] = tetrahedron.verts[3];
83  }
84 
89 
93  PX_FORCE_INLINE void operator=(const PxTetrahedron& tetrahedron)
94  {
95  verts[0] = tetrahedron.verts[0];
96  verts[1] = tetrahedron.verts[1];
97  verts[2] = tetrahedron.verts[2];
98  verts[3] = tetrahedron.verts[3];
99  }
103  PxVec3 verts[4];
104 
105  };
106 
107 
108 #if !PX_DOXYGEN
109 }
110 #endif
111 
113 #endif
Definition: GuContactBuffer.h:37
#define PX_FORCE_INLINE
Definition: PxPreprocessor.h:364
PX_FORCE_INLINE ~PxTetrahedron()
Destructor.
Definition: PxTetrahedron.h:88
PX_FORCE_INLINE PxTetrahedron(const PxTetrahedron &tetrahedron)
Copy constructor.
Definition: PxTetrahedron.h:77
Tetrahedron class.
Definition: PxTetrahedron.h:48
PxVec3 verts[4]
Array of Vertices.
Definition: PxTetrahedron.h:103
PX_FORCE_INLINE PxTetrahedron(const PxVec3 &p0, const PxVec3 &p1, const PxVec3 &p2, const PxVec3 &p3)
Constructor.
Definition: PxTetrahedron.h:64
PX_FORCE_INLINE PxTetrahedron()
Constructor.
Definition: PxTetrahedron.h:54
PX_FORCE_INLINE void operator=(const PxTetrahedron &tetrahedron)
Assignment operator.
Definition: PxTetrahedron.h:93
3 Element vector class.
Definition: PxVec3.h:49