Class PxExtendedVec3

java.lang.Object
physx.NativeObject
physx.character.PxExtendedVec3

public class PxExtendedVec3 extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxExtendedVec3

      protected PxExtendedVec3(long address)
    • PxExtendedVec3

      public PxExtendedVec3()
    • PxExtendedVec3

      public PxExtendedVec3(double x, double y, double z)
      Parameters:
      x - WebIDL type: double
      y - WebIDL type: double
      z - WebIDL type: double
  • Method Details

    • wrapPointer

      public static PxExtendedVec3 wrapPointer(long address)
    • arrayGet

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

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

      public static <T> PxExtendedVec3 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 PxExtendedVec3
    • createAt

      public static PxExtendedVec3 createAt(long address, double x, double y, double z)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      x - WebIDL type: double
      y - WebIDL type: double
      z - WebIDL type: double
      Returns:
      Stack allocated object of PxExtendedVec3
    • createAt

      public static <T> PxExtendedVec3 createAt(T allocator, NativeObject.Allocator<T> allocate, double x, double y, double z)
      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.
      x - WebIDL type: double
      y - WebIDL type: double
      z - WebIDL type: double
      Returns:
      Stack allocated object of PxExtendedVec3
    • destroy

      public void destroy()
    • getX

      public double getX()
      Returns:
      WebIDL type: double
    • setX

      public void setX(double value)
      Parameters:
      value - WebIDL type: double
    • getY

      public double getY()
      Returns:
      WebIDL type: double
    • setY

      public void setY(double value)
      Parameters:
      value - WebIDL type: double
    • getZ

      public double getZ()
      Returns:
      WebIDL type: double
    • setZ

      public void setZ(double value)
      Parameters:
      value - WebIDL type: double