Searched refs:squaredDistanceFrom (Results 1 – 2 of 2) sorted by relevance
480 public int squaredDistanceFrom(int x, int y) { in squaredDistanceFrom() method in Keyboard.Key713 if (key.squaredDistanceFrom(x, y) < mProximityThreshold || in computeNearestNeighbors()714 key.squaredDistanceFrom(x + mCellWidth - 1, y) < mProximityThreshold || in computeNearestNeighbors()715 key.squaredDistanceFrom(x + mCellWidth - 1, y + mCellHeight - 1) in computeNearestNeighbors()717 key.squaredDistanceFrom(x, y + mCellHeight - 1) < mProximityThreshold || in computeNearestNeighbors()
816 && (dist = key.squaredDistanceFrom(x, y)) < mProximityThreshold) in getKeyIndices()