java.lang.Object
physx.NativeObject
physx.geometry.PxTriangle
Triangle class.
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructorprotectedPxTriangle(long address) PxTriangle(PxVec3 p0, PxVec3 p1, PxVec3 p2) Constructor -
Method Summary
Modifier and TypeMethodDescriptionfloatarea()Compute the area of the triangle.static PxTrianglearrayGet(long baseAddress, int index) voiddenormalizedNormal(PxVec3 normal) Compute the unnormalized normal of the triangle.voiddestroy()voidCompute the normal of the Triangle.pointFromUV(float u, float v) static PxTrianglewrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxTriangle
protected PxTriangle(long address) -
PxTriangle
public PxTriangle()Constructor -
PxTriangle
Constructor- Parameters:
p0- Point 0p1- Point 1p2- Point 2
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
normal
Compute the normal of the Triangle. -
denormalizedNormal
Compute the unnormalized normal of the triangle. -
area
public float area()Compute the area of the triangle.- Returns:
- Area of the triangle.
-
pointFromUV
- Returns:
- Computes a point on the triangle from u and v barycentric coordinates.
-