considerPointsEquals2D method

bool considerPointsEquals2D(
  1. Vector3 a,
  2. Vector3 b
)

Implementation

bool considerPointsEquals2D(Vector3 a, Vector3 b) {
  var atol = toleranceForPointEquality;
  var rtol = 1.0e-5;

  if ((a.x - b.x).abs() > atol + rtol * b.x.abs()) {
    return false;
  }

  if ((a.y - b.y).abs() > atol + rtol * b.y.abs()) {
    return false;
  }

  return true;
}