Quaternion.fromBuffer constructor

Quaternion.fromBuffer(
  1. ByteBuffer buffer,
  2. int offset
)

Constructs a quaternion with a storage that views given buffer starting at offset. offset has to be multiple of Float64List.bytesPerElement.

Implementation

Quaternion.fromBuffer(ByteBuffer buffer, int offset)
    : _qStorage = Float64List.view(buffer, offset, 4);