Matrix4.fromBuffer constructor Null safety
- ByteBuffer buffer,
- int offset
Constructs Matrix4 with a storage that views given buffer
starting at
offset
. offset
has to be multiple of Float64List.bytesPerElement.
Implementation
Matrix4.fromBuffer(ByteBuffer buffer, int offset)
: _m4storage = Float64List.view(buffer, offset, 16);