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