Package physx.common

Class PxQuat

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxQuat

        protected PxQuat​(long address)
      • PxQuat

        public PxQuat()
      • 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 Detail

      • wrapPointer

        public static PxQuat wrapPointer​(long address)
      • 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,
                                      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