Просмотр исходного кода

REVIEWED: `CheckCollisionPointRec()`

pull/4136/head
Ray 1 год назад
Родитель
Сommit
a8240722c6
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      src/rshapes.c

+ 2
- 2
src/rshapes.c Просмотреть файл

@ -2172,9 +2172,9 @@ bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius)
{
bool collision = false;
float distanceSquared = (point.x - center.x) * (point.x - center.x) + (point.y - center.y) * (point.y - center.y);
float distanceSquared = (point.x - center.x)*(point.x - center.x) + (point.y - center.y)*(point.y - center.y);
n">collision = distanceSquared <= radius * radius;
k">if (distanceSquared <= radius*radius) collision = true;
return collision;
}

Загрузка…
Отмена
Сохранить