Aabb3.fromBuffer constructor
Constructs Aabb3 with a min/max storage
that views given buffer
starting at offset
. offset
has to be multiple of
Float32List.bytesPerElement.
Implementation
Aabb3.fromBuffer(ByteBuffer buffer, int offset)
: _min = new Vector3.fromBuffer(buffer, offset),
_max = new Vector3.fromBuffer(
buffer, offset + Float32List.bytesPerElement * 3);