Triangle class.
More...
#include <PxTriangle.h>
◆ PxTriangle() [1/3]
◆ PxTriangle() [2/3]
Constructor.
- Parameters
-
[in] | p0 | Point 0 |
[in] | p1 | Point 1 |
[in] | p2 | Point 2 |
◆ PxTriangle() [3/3]
Copy constructor.
- Parameters
-
References verts.
◆ ~PxTriangle()
◆ area()
◆ denormalizedNormal()
Compute the unnormalized normal of the triangle.
- Parameters
-
[out] | _normal | Triangle normal (not normalized). |
◆ normal()
Compute the normal of the Triangle.
- Parameters
-
[out] | _normal | Triangle normal. |
References PxVec3::normalize().
◆ operator=()
Assignment operator.
References verts.
◆ pointFromUV()
PxVec3 PxTriangle::pointFromUV |
( |
PxReal |
u, |
|
|
PxReal |
v |
|
) |
| const |
|
inline |
- Returns
- Computes a point on the triangle from u and v barycentric coordinates.
◆ verts
The documentation for this class was generated from the following file: