Class XrHandJointLocationEXT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class XrHandJointLocationEXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Describes the location and radius of a hand joint.
    Description

    If the returned locationFlags has SPACE_LOCATION_POSITION_VALID_BIT set, the returned radius must be a positive value.

    If the returned locationFlags has SPACE_LOCATION_POSITION_VALID_BIT unset, the returned radius value is undefined and should be avoided.

    Valid Usage (Implicit)
    See Also

    XrHandJointLocationsEXT, XrPosef

    Layout

    
     struct XrHandJointLocationEXT {
         XrSpaceLocationFlags locationFlags();
         XrPosef pose();
         float radius();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LOCATIONFLAGS, POSE, RADIUS

        The struct member offsets.
    • Constructor Detail

      • XrHandJointLocationEXT

        public XrHandJointLocationEXT​(java.nio.ByteBuffer container)
        Creates a XrHandJointLocationEXT 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
      • locationFlags

        public long locationFlags()
        a bitfield, with bit masks defined in XrSpaceLocationFlagBits, 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.
      • pose

        public XrPosef pose()
        an XrPosef defining the position and orientation of the origin of a hand joint within the reference frame of the corresponding XrHandJointsLocateInfoEXT::baseSpace.
      • radius

        public float radius()
        a float value radius of the corresponding joint in units of meters.
      • set

        public XrHandJointLocationEXT set​(long locationFlags,
                                          XrPosef pose,
                                          float radius)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

        public static XrHandJointLocationEXT.Buffer calloc​(int capacity,
                                                           org.lwjgl.system.MemoryStack stack)
        Returns a new XrHandJointLocationEXT.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
      • nlocationFlags

        public static long nlocationFlags​(long struct)
        Unsafe version of locationFlags().
      • npose

        public static XrPosef npose​(long struct)
        Unsafe version of pose().
      • nradius

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

        public static void nlocationFlags​(long struct,
                                          long value)
        Unsafe version of locationFlags.
      • npose

        public static void npose​(long struct,
                                 XrPosef value)
        Unsafe version of pose.
      • nradius

        public static void nradius​(long struct,
                                   float value)
        Unsafe version of radius.