Class AIQuatKey.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<AIQuatKey>, NativeResource, Pointer
Enclosing class:
AIQuatKey

public static class AIQuatKey.Buffer extends StructBuffer<AIQuatKey,AIQuatKey.Buffer> implements NativeResource
An array of AIQuatKey structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new AIQuatKey.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by AIQuatKey.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • mTime

      public double mTime()
      Returns:
      the value of the mTime field.
    • mValue

      public AIQuaternion mValue()
      Returns:
      a AIQuaternion view of the mValue field.
    • mInterpolation

      public int mInterpolation()
      Returns:
      the value of the mInterpolation field.
    • mTime

      public AIQuatKey.Buffer mTime(double value)
      Sets the specified value to the mTime field.
    • mValue

      public AIQuatKey.Buffer mValue(AIQuaternion value)
      Copies the specified AIQuaternion to the mValue field.
    • mValue

      public AIQuatKey.Buffer mValue(Consumer<AIQuaternion> consumer)
      Passes the mValue field to the specified Consumer.
    • mInterpolation

      public AIQuatKey.Buffer mInterpolation(int value)
      Sets the specified value to the mInterpolation field.