toFloat64x2List method

Float64x2List toFloat64x2List()

Implementation

Float64x2List toFloat64x2List() {
  var length = this.length;
  var size = length ~/ 2;
  if (size * 4 < length) ++size;

  var list = List.generate(size, (i) {
    var j = i * 4;
    var x = this[j];
    var y = this[++j];
    return Float64x2(x, y);
  });

  return Float64x2List.fromList(list);
}