Class PxTriangle

java.lang.Object
physx.NativeObject
physx.geometry.PxTriangle

public class PxTriangle extends NativeObject
Triangle class.
  • 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

      public PxTriangle(PxVec3 p0, PxVec3 p1, PxVec3 p2)
      Constructor
      Parameters:
      p0 - Point 0
      p1 - Point 1
      p2 - Point 2
  • Method Details

    • wrapPointer

      public static PxTriangle wrapPointer(long address)
    • arrayGet

      public static PxTriangle arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • normal

      public void normal(PxVec3 normal)
      Compute the normal of the Triangle.
    • denormalizedNormal

      public void denormalizedNormal(PxVec3 normal)
      Compute the unnormalized normal of the triangle.
    • area

      public float area()
      Compute the area of the triangle.
      Returns:
      Area of the triangle.
    • pointFromUV

      public PxVec3 pointFromUV(float u, float v)
      Returns:
      Computes a point on the triangle from u and v barycentric coordinates.