Class XrHandJointVelocityEXT

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • VELOCITYFLAGS, LINEARVELOCITY, ANGULARVELOCITY

        The struct member offsets.
    • Constructor Detail

      • XrHandJointVelocityEXT

        public XrHandJointVelocityEXT​(java.nio.ByteBuffer container)
        Creates a XrHandJointVelocityEXT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • velocityFlags

        public long velocityFlags()
        a bitfield, with bit masks defined in XrSpaceVelocityFlagBits, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful.
      • linearVelocity

        public XrVector3f linearVelocity()
        the relative linear velocity of the hand joint with respect to and expressed in the reference frame of the corresponding XrHandJointsLocateInfoEXT::baseSpace, in units of meters per second.
      • angularVelocity

        public XrVector3f angularVelocity()
        the relative angular velocity of the hand joint with respect to the corresponding XrHandJointsLocateInfoEXT::baseSpace. The vector’s direction is expressed in the reference frame of the corresponding XrHandJointsLocateInfoEXT::baseSpace and is parallel to the rotational axis of the hand joint. The vector’s magnitude is the relative angular speed of the hand joint in radians per second. The vector follows the right-hand rule for torque/rotation.
      • malloc

        public static XrHandJointVelocityEXT malloc()
        Returns a new XrHandJointVelocityEXT instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static XrHandJointVelocityEXT calloc()
        Returns a new XrHandJointVelocityEXT instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static XrHandJointVelocityEXT create()
        Returns a new XrHandJointVelocityEXT instance allocated with BufferUtils.
      • create

        public static XrHandJointVelocityEXT create​(long address)
        Returns a new XrHandJointVelocityEXT instance for the specified memory address.
      • createSafe

        @Nullable
        public static XrHandJointVelocityEXT createSafe​(long address)
        Like create, but returns null if address is NULL.
      • malloc

        public static XrHandJointVelocityEXT malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandJointVelocityEXT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrHandJointVelocityEXT calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandJointVelocityEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static XrHandJointVelocityEXT.Buffer malloc​(int capacity,
                                                           org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandJointVelocityEXT.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static XrHandJointVelocityEXT.Buffer calloc​(int capacity,
                                                           org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandJointVelocityEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nvelocityFlags

        public static long nvelocityFlags​(long struct)
        Unsafe version of velocityFlags().
      • nvelocityFlags

        public static void nvelocityFlags​(long struct,
                                          long value)
        Unsafe version of velocityFlags.
      • nlinearVelocity

        public static void nlinearVelocity​(long struct,
                                           XrVector3f value)
        Unsafe version of linearVelocity.
      • nangularVelocity

        public static void nangularVelocity​(long struct,
                                            XrVector3f value)
        Unsafe version of angularVelocity.