Vector3.fromBuffer constructor

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

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

Implementation

Vector3.fromBuffer(ByteBuffer buffer, int offset)
    : _v3storage = new Float32List.view(buffer, offset, 3);