Searched refs:closest_distance_squared (Results 1 – 2 of 2) sorted by relevance
103 int64 closest_distance_squared = 0; in GetTargetForLocation() local116 if (!closest_point || distance_squared < closest_distance_squared) { in GetTargetForLocation()118 closest_distance_squared = distance_squared; in GetTargetForLocation()123 if (closest_distance_squared < max_distance * max_distance && closest_point) in GetTargetForLocation()130 float closest_distance_squared = std::numeric_limits<float>::infinity(); in GetTargetForLocation() local144 if (distance_squared < closest_distance_squared) { in GetTargetForLocation()147 closest_distance_squared = distance_squared; in GetTargetForLocation()152 if (closest_distance_squared < max_distance * max_distance) in GetTargetForLocation()
509 int64 closest_distance_squared = -1; in EnsurePointerInDisplays() local532 if (closest_distance_squared < 0 || in EnsurePointerInDisplays()533 closest_distance_squared > distance_squared) { in EnsurePointerInDisplays()541 closest_distance_squared = distance_squared; in EnsurePointerInDisplays()