considerPointsEquals method

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

Implementation

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

  if (!considerPointsEquals2D(a, b)) {
    return false;
  }

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

  return true;
}