DoubleMapper constructor
Implementation
DoubleMapper(List<(double, double)> mappings) {
_sourceValues = List.filled(mappings.length, 0);
_targetValues = List.filled(mappings.length, 0);
for (var i = 0; i < mappings.length; i++) {
final pair = mappings[i];
_sourceValues[i] = pair.$1;
_targetValues[i] = pair.$2;
}
validateProgress(_sourceValues);
validateProgress(_targetValues);
}