Affine.fromCompact constructor

Affine.fromCompact(
  1. List<double> storage,
  2. int offset
)

Create a new immutable matrix as a view on underlying storage with an offset. The first two rows are taken from storage, in row major order; the final row of "0 0 1" is implicit. The storage must have a length of at least offset + 6. The caller must ensure that the underlying list is not changed.

Implementation

factory Affine.fromCompact(List<double> storage, int offset) =>
    _CompactAffine(storage, offset);