BinaryAffineTransform constructor
- BinaryMatrix matrix, {
- 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.');
}
}