mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -170,7 +170,7 @@ Point<T> Rect<T>::closest_to(Point<T> const& point) const
|
|||
return {};
|
||||
Optional<Point<T>> closest_point;
|
||||
float closest_distance = 0.0;
|
||||
auto check_distance = [&](const Line<T>& line) {
|
||||
auto check_distance = [&](Line<T> const& line) {
|
||||
auto point_on_line = line.closest_to(point);
|
||||
auto distance = Line { point_on_line, point }.length();
|
||||
if (!closest_point.has_value() || distance < closest_distance) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue