BinaryAffineTransform constructor

BinaryAffineTransform(
  1. BinaryMatrix matrix, {
  2. BigInt? offset,
})

Creates a binary affine transform.

Implementation

BinaryAffineTransform(this.matrix, {BigInt? offset})
    : offset = offset ?? BigInt.zero {
  if (this.offset.isNegative || this.offset >= (BigInt.one << outputWidth)) {
    throw RohdHclException(
        'Binary affine offset ${this.offset} does not fit in '
        '$outputWidth output bits.');
  }
}