Class XrHandCapsuleFB

All Implemented Interfaces:
Pointer

public class XrHandCapsuleFB extends Struct<XrHandCapsuleFB>

 struct XrHandCapsuleFB {
     {@link XrVector3f XrVector3f} points[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB];
     float radius;
     XrHandJointEXT joint;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int POINTS
      The struct member offsets.
    • RADIUS

      public static final int RADIUS
      The struct member offsets.
    • JOINT

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

    • XrHandCapsuleFB

      public XrHandCapsuleFB(ByteBuffer container)
      Creates a XrHandCapsuleFB 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<XrHandCapsuleFB>
    • points

      public XrVector3f.Buffer points()
      Returns:
      a XrVector3f.Buffer view of the points field.
    • points

      public XrVector3f points(int index)
      Returns:
      a XrVector3f view of the struct at the specified index of the points field.
    • radius

      public float radius()
      Returns:
      the value of the radius field.
    • joint

      public int joint()
      Returns:
      the value of the joint field.
    • create

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

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

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

      public static @Nullable XrHandCapsuleFB.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • npoints

      public static XrVector3f.Buffer npoints(long struct)
      Unsafe version of points().
    • npoints

      public static XrVector3f npoints(long struct, int index)
      Unsafe version of points.
    • nradius

      public static float nradius(long struct)
      Unsafe version of radius().
    • njoint

      public static int njoint(long struct)
      Unsafe version of joint().