Class XrSpaceVelocityData

All Implemented Interfaces:
Pointer
Direct Known Subclasses:
XrSpaceVelocityDataKHR

public class XrSpaceVelocityData extends Struct<XrSpaceVelocityData>

 struct XrSpaceVelocityData {
     XrSpaceVelocityFlags velocityFlags;
     {@link XrVector3f XrVector3f} linearVelocity;
     {@link XrVector3f 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

    • XrSpaceVelocityData

      public XrSpaceVelocityData(ByteBuffer container)
      Creates a XrSpaceVelocityData 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<XrSpaceVelocityData>
    • 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 XrSpaceVelocityData create(long address)
      Returns a new XrSpaceVelocityData instance for the specified memory address.
    • createSafe

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

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

      public static @Nullable XrSpaceVelocityData.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().