Class XrHandJointVelocityEXT

All Implemented Interfaces:
Pointer

public class XrHandJointVelocityEXT extends Struct<XrHandJointVelocityEXT>

 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrHandJointVelocityEXT>
    • velocityFlags

      public long velocityFlags()
      Returns:
      the value of the velocityFlags field.
    • linearVelocity

      public XrVector3f linearVelocity()
      Returns:
      a XrVector3f view of the linearVelocity field.
    • angularVelocity

      public XrVector3f angularVelocity()
      Returns:
      a XrVector3f view of the angularVelocity field.
    • 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.
    • 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.
    • 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().