Package physx.common

Class PxPlane

java.lang.Object
physx.NativeObject
physx.common.PxPlane

public class PxPlane extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxPlane

      protected PxPlane(long address)
    • PxPlane

      public PxPlane()
    • PxPlane

      public PxPlane(float nx, float ny, float nz, float distance)
      Parameters:
      nx - WebIDL type: float
      ny - WebIDL type: float
      nz - WebIDL type: float
      distance - WebIDL type: float
    • PxPlane

      public PxPlane(PxVec3 normal, float distance)
      Parameters:
      normal - WebIDL type: PxVec3 [Const, Ref]
      distance - WebIDL type: float
    • PxPlane

      public PxPlane(PxVec3 p0, PxVec3 p1, PxVec3 p2)
      Parameters:
      p0 - WebIDL type: PxVec3 [Const, Ref]
      p1 - WebIDL type: PxVec3 [Const, Ref]
      p2 - WebIDL type: PxVec3 [Const, Ref]
  • Method Details

    • wrapPointer

      public static PxPlane wrapPointer(long address)
    • arrayGet

      public static PxPlane arrayGet(long baseAddress, int index)
    • createAt

      public static PxPlane createAt(long address)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      Returns:
      Stack allocated object of PxPlane
    • createAt

      public static <T> PxPlane createAt(T allocator, NativeObject.Allocator<T> allocate)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      Returns:
      Stack allocated object of PxPlane
    • createAt

      public static PxPlane createAt(long address, float nx, float ny, float nz, float distance)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      nx - WebIDL type: float
      ny - WebIDL type: float
      nz - WebIDL type: float
      distance - WebIDL type: float
      Returns:
      Stack allocated object of PxPlane
    • createAt

      public static <T> PxPlane createAt(T allocator, NativeObject.Allocator<T> allocate, float nx, float ny, float nz, float distance)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      nx - WebIDL type: float
      ny - WebIDL type: float
      nz - WebIDL type: float
      distance - WebIDL type: float
      Returns:
      Stack allocated object of PxPlane
    • createAt

      public static PxPlane createAt(long address, PxVec3 normal, float distance)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      normal - WebIDL type: PxVec3 [Const, Ref]
      distance - WebIDL type: float
      Returns:
      Stack allocated object of PxPlane
    • createAt

      public static <T> PxPlane createAt(T allocator, NativeObject.Allocator<T> allocate, PxVec3 normal, float distance)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      normal - WebIDL type: PxVec3 [Const, Ref]
      distance - WebIDL type: float
      Returns:
      Stack allocated object of PxPlane
    • createAt

      public static PxPlane createAt(long address, PxVec3 p0, PxVec3 p1, PxVec3 p2)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      p0 - WebIDL type: PxVec3 [Const, Ref]
      p1 - WebIDL type: PxVec3 [Const, Ref]
      p2 - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      Stack allocated object of PxPlane
    • createAt

      public static <T> PxPlane createAt(T allocator, NativeObject.Allocator<T> allocate, PxVec3 p0, PxVec3 p1, PxVec3 p2)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      p0 - WebIDL type: PxVec3 [Const, Ref]
      p1 - WebIDL type: PxVec3 [Const, Ref]
      p2 - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      Stack allocated object of PxPlane
    • destroy

      public void destroy()
    • getN

      public PxVec3 getN()
      Returns:
      WebIDL type: PxVec3 [Value]
    • setN

      public void setN(PxVec3 value)
      Parameters:
      value - WebIDL type: PxVec3 [Value]
    • getD

      public float getD()
      Returns:
      WebIDL type: float
    • setD

      public void setD(float value)
      Parameters:
      value - WebIDL type: float
    • distance

      public float distance(PxVec3 p)
      Parameters:
      p - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      WebIDL type: float
    • contains

      public boolean contains(PxVec3 p)
      Parameters:
      p - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      WebIDL type: boolean
    • project

      public PxVec3 project(PxVec3 p)
      Parameters:
      p - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      WebIDL type: PxVec3 [Value]
    • pointInPlane

      public PxVec3 pointInPlane()
      Returns:
      WebIDL type: PxVec3 [Value]
    • normalize

      public void normalize()
    • transform

      public PxPlane transform(PxTransform pose)
      Parameters:
      pose - WebIDL type: PxTransform [Const, Ref]
      Returns:
      WebIDL type: PxPlane [Value]
    • inverseTransform

      public PxPlane inverseTransform(PxTransform pose)
      Parameters:
      pose - WebIDL type: PxTransform [Const, Ref]
      Returns:
      WebIDL type: PxPlane [Value]