minimumDistanceCheck method

bool minimumDistanceCheck(
  1. Vector2 activeItemCenter,
  2. Vector2 potentialCenter
)

Implementation

bool minimumDistanceCheck(Vector2 activeItemCenter, Vector2 potentialCenter) {
  return minimumDistance == null ||
      !((activeItemCenter.x - potentialCenter.x).abs() > minimumDistance! ||
          (activeItemCenter.y - potentialCenter.y).abs() > minimumDistance!);
}