Class ImuSample

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FSAMPLETIME, VACCEL, VGYRO, UNOFFSCALEFLAGS

        The struct member offsets.
    • Constructor Detail

      • ImuSample

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

        public double fSampleTime()
        Returns the value of the fSampleTime field.
      • vAccel

        public ImuSample vAccel​(java.util.function.Consumer<HmdVector3d> consumer)
        Passes the vAccel field to the specified Consumer.
      • vGyro

        public ImuSample vGyro​(java.util.function.Consumer<HmdVector3d> consumer)
        Passes the vGyro field to the specified Consumer.
      • unOffScaleFlags

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

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

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

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

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

        public static double nfSampleTime​(long struct)
        Unsafe version of fSampleTime().
      • nunOffScaleFlags

        public static int nunOffScaleFlags​(long struct)
        Unsafe version of unOffScaleFlags().