Class HmdQuaternionf

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

    public class HmdQuaternionf
    extends Struct
    implements NativeResource


     struct HmdQuaternionf_t {
         float w;
         float x;
         float y;
         float z;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • W, X, Y, Z

        The struct member offsets.
    • Constructor Detail

      • HmdQuaternionf

        public HmdQuaternionf​(java.nio.ByteBuffer container)
        Creates a HmdQuaternionf 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • w

        public float w()
        Returns the value of the w field.
      • x

        public float x()
        Returns the value of the x field.
      • y

        public float y()
        Returns the value of the y field.
      • z

        public float z()
        Returns the value of the z field.
      • w

        public HmdQuaternionf w​(float value)
        Sets the specified value to the w field.
      • x

        public HmdQuaternionf x​(float value)
        Sets the specified value to the x field.
      • y

        public HmdQuaternionf y​(float value)
        Sets the specified value to the y field.
      • z

        public HmdQuaternionf z​(float value)
        Sets the specified value to the z field.
      • set

        public HmdQuaternionf set​(float w,
                                  float x,
                                  float y,
                                  float z)
        Initializes this struct with the specified values.
      • set

        public HmdQuaternionf set​(HmdQuaternionf src)
        Copies the specified struct data to this struct.
        src - the source struct
        this struct
      • createSafe

        public static HmdQuaternionf createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

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

        public static HmdQuaternionf.Buffer createSafe​(long address,
                                                       int capacity)
        Like create, but returns null if address is NULL.
      • nw

        public static float nw​(long struct)
        Unsafe version of w().
      • nx

        public static float nx​(long struct)
        Unsafe version of x().
      • ny

        public static float ny​(long struct)
        Unsafe version of y().
      • nz

        public static float nz​(long struct)
        Unsafe version of z().
      • nw

        public static void nw​(long struct,
                              float value)
        Unsafe version of w.
      • nx

        public static void nx​(long struct,
                              float value)
        Unsafe version of x.
      • ny

        public static void ny​(long struct,
                              float value)
        Unsafe version of y.
      • nz

        public static void nz​(long struct,
                              float value)
        Unsafe version of z.