copyIntoCompact method

  1. @override
void copyIntoCompact(
  1. List<double> storage, [
  2. int offset = 0
])
override

Copy this affine into the compact format, as described in Affine.fromCompact.

Implementation

@override
void copyIntoCompact(List<double> storage, [int offset = 0]) {
  for (int col = 0; col < 3; col++) {
    for (int row = 0; row < 2; row++) {
      storage[offset + _CompactAffine._storageIndex(row, col)] =
          _get(row, col);
    }
  }
}