equalsWithinEpsilon function

bool equalsWithinEpsilon(
  1. double a,
  2. double b
)

Implementation

bool equalsWithinEpsilon(double a, double b) {
  return (a - b).abs() < defaultEpsilon;
}