Package physx.common

Class PxQuat


public class PxQuat extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxQuat

      protected PxQuat(long address)
    • PxQuat

      public PxQuat()
    • PxQuat

      public PxQuat(PxIDENTITYEnum r)
      Parameters:
      r - WebIDL type: PxIDENTITYEnum [enum]
    • PxQuat

      public PxQuat(float x, float y, float z, float w)
      Parameters:
      x - WebIDL type: float
      y - WebIDL type: float
      z - WebIDL type: float
      w - WebIDL type: float
  • Method Details

    • wrapPointer

      public static PxQuat wrapPointer(long address)
    • arrayGet

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

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

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

      public static PxQuat createAt(long address, PxIDENTITYEnum r)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      r - WebIDL type: PxIDENTITYEnum [enum]
      Returns:
      Stack allocated object of PxQuat
    • createAt

      public static <T> PxQuat createAt(T allocator, NativeObject.Allocator<T> allocate, PxIDENTITYEnum r)
      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.
      r - WebIDL type: PxIDENTITYEnum [enum]
      Returns:
      Stack allocated object of PxQuat
    • createAt

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

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

      public void destroy()
    • getX

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

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

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

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

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

      public void setZ(float value)
      Parameters:
      value - WebIDL type: float
    • getW

      public float getW()
      Returns:
      WebIDL type: float
    • setW

      public void setW(float value)
      Parameters:
      value - WebIDL type: float
    • isIdentity

      public boolean isIdentity()
      Returns:
      WebIDL type: boolean
    • isFinite

      public boolean isFinite()
      Returns:
      WebIDL type: boolean
    • isUnit

      public boolean isUnit()
      Returns:
      WebIDL type: boolean
    • isSane

      public boolean isSane()
      Returns:
      WebIDL type: boolean
    • getAngle

      public float getAngle()
      Returns:
      WebIDL type: float
    • getAngle

      public float getAngle(PxQuat q)
      Parameters:
      q - WebIDL type: PxQuat [Const, Ref]
      Returns:
      WebIDL type: float
    • magnitudeSquared

      public float magnitudeSquared()
      Returns:
      WebIDL type: float
    • dot

      public float dot(PxQuat q)
      Parameters:
      q - WebIDL type: PxQuat [Const, Ref]
      Returns:
      WebIDL type: float
    • getNormalized

      public PxQuat getNormalized()
      Returns:
      WebIDL type: PxQuat [Value]
    • magnitude

      public float magnitude()
      Returns:
      WebIDL type: float
    • normalize

      public float normalize()
      Returns:
      WebIDL type: float
    • getConjugate

      public PxQuat getConjugate()
      Returns:
      WebIDL type: PxQuat [Value]
    • getImaginaryPart

      public PxVec3 getImaginaryPart()
      Returns:
      WebIDL type: PxVec3 [Value]
    • getBasisVector0

      public PxVec3 getBasisVector0()
      Returns:
      WebIDL type: PxVec3 [Value]
    • getBasisVector1

      public PxVec3 getBasisVector1()
      Returns:
      WebIDL type: PxVec3 [Value]
    • getBasisVector2

      public PxVec3 getBasisVector2()
      Returns:
      WebIDL type: PxVec3 [Value]
    • rotate

      public PxVec3 rotate(PxVec3 v)
      Parameters:
      v - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      WebIDL type: PxVec3 [Value]
    • rotateInv

      public PxVec3 rotateInv(PxVec3 v)
      Parameters:
      v - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      WebIDL type: PxVec3 [Value]