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 - float
        y - float
        z - float
        w - float
    • Method Detail

      • wrapPointer

        public static PxQuat wrapPointer​(long address)
      • malloc

        public static PxQuat malloc​(long address)
        Parameters:
        address - where the object is allocated
        Returns:
        Stack allocated object of PxQuat
      • malloc

        public static <T> PxQuat malloc​(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
      • malloc

        public static PxQuat malloc​(long address,
                                    float x,
                                    float y,
                                    float z,
                                    float w)
        Parameters:
        address - where the object is allocated
        x - float
        y - float
        z - float
        w - float
        Returns:
        Stack allocated object of PxQuat
      • malloc

        public static <T> PxQuat malloc​(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 - float
        y - float
        z - float
        w - float
        Returns:
        Stack allocated object of PxQuat
      • destroy

        public void destroy()
      • getX

        public float getX()
        Returns:
        float
      • setX

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

        public float getY()
        Returns:
        float
      • setY

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

        public float getZ()
        Returns:
        float
      • setZ

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

        public float getW()
        Returns:
        float
      • setW

        public void setW​(float value)
        Parameters:
        value - float