absoluteError method

double absoluteError(
  1. Vector4 correct
)

Absolute error between this and correct

Implementation

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