absoluteError method

double absoluteError(
  1. Quaternion correct
)

Absolute error between this and correct.

Implementation

double absoluteError(Quaternion correct) {
  final this_norm = length;
  final correct_norm = correct.length;
  final norm_diff = (this_norm - correct_norm).abs();
  return norm_diff;
}