Class XrHandJointVelocityEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrHandJointVelocityEXT>
org.lwjgl.openxr.XrHandJointVelocityEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrHandJointVelocityEXT extends org.lwjgl.system.Struct<XrHandJointVelocityEXT> implements org.lwjgl.system.NativeResource
Describes the velocity of a hand joint.
Valid Usage (Implicit)
See Also

XrHandJointVelocitiesEXT, XrVector3f

Layout


 struct XrHandJointVelocityEXT {
     XrSpaceVelocityFlags velocityFlags();
     XrVector3f linearVelocity();
     XrVector3f angularVelocity();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • VELOCITYFLAGS

      public static final int VELOCITYFLAGS
      The struct member offsets.
    • LINEARVELOCITY

      public static final int LINEARVELOCITY
      The struct member offsets.
    • ANGULARVELOCITY

      public static final int ANGULARVELOCITY
      The struct member offsets.
  • Constructor Details

    • XrHandJointVelocityEXT

      public XrHandJointVelocityEXT(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XrHandJointVelocityEXT>
    • 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.
    • velocityFlags

      public XrHandJointVelocityEXT velocityFlags(long value)
      Sets the specified value to the velocityFlags() field.
    • linearVelocity

      public XrHandJointVelocityEXT linearVelocity(XrVector3f value)
      Copies the specified XrVector3f to the linearVelocity() field.
    • linearVelocity

      public XrHandJointVelocityEXT linearVelocity(Consumer<XrVector3f> consumer)
      Passes the linearVelocity() field to the specified Consumer.
    • angularVelocity

      public XrHandJointVelocityEXT angularVelocity(XrVector3f value)
      Copies the specified XrVector3f to the angularVelocity() field.
    • angularVelocity

      public XrHandJointVelocityEXT angularVelocity(Consumer<XrVector3f> consumer)
      Passes the angularVelocity() field to the specified Consumer.
    • set

      public XrHandJointVelocityEXT set(long velocityFlags, XrVector3f linearVelocity, XrVector3f angularVelocity)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • 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

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

      public static XrHandJointVelocityEXT.Buffer malloc(int capacity)
      Returns a new XrHandJointVelocityEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrHandJointVelocityEXT.Buffer calloc(int capacity)
      Returns a new XrHandJointVelocityEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrHandJointVelocityEXT.Buffer create(int capacity)
      Returns a new XrHandJointVelocityEXT.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrHandJointVelocityEXT.Buffer create(long address, int capacity)
      Create a XrHandJointVelocityEXT.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrHandJointVelocityEXT.Buffer createSafe(long address, int capacity)
      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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nvelocityFlags

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

      public static XrVector3f nlinearVelocity(long struct)
      Unsafe version of linearVelocity().
    • nangularVelocity

      public static XrVector3f nangularVelocity(long struct)
      Unsafe version of angularVelocity().
    • 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.