absoluteError method

double absoluteError(
  1. Vector4 correct
)

Absolute error between this and correct

Implementation

double absoluteError(Vector4 correct) {
  final double wDiff = _v4storage[3] - correct._v4storage[3];
  final double zDiff = _v4storage[2] - correct._v4storage[2];
  final double yDiff = _v4storage[1] - correct._v4storage[1];
  final double xDiff = _v4storage[0] - correct._v4storage[0];
  return math.sqrt(xDiff * xDiff + yDiff * yDiff + zDiff * zDiff + wDiff * wDiff);
}