calcAbsVelo method
Calculates a absolute velocity based on the current view port and returns its value.
Implementation
double calcAbsVelo(double relVelo) {
// Check if the provided velocity is greater than 0
if (!(relVelo > 0.0)) {
return maxAxisLengthAbs;
}
double maxDiff = velocity - maxAxisLengthAbs;
double maxDiffAb = maxDiff.abs() - (maxAxisLengthAbs - 1);
double velo = (maxDiffAb * (maxAxisLengthAbs / 4) + 1);
return velo;
}