absoluteError method

double absoluteError (Quaternion correct)

Absolute error between this and correct.

Implementation

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