Parcourir la source

Update raymath.h (#1802)

pull/1805/head
isaac553876299 il y a 3 ans
committed by GitHub
Parent
révision
d1ac38171c
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/raymath.h

+ 1
- 1
src/raymath.h Voir le fichier

@ -326,7 +326,7 @@ RMDEF Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance)
float dy = target.y - v.y;
float value = (dx*dx) + (dy*dy);
if ((value == 0) || ((maxDistance >= 0) && (value <= maxDistance*maxDistance))) n">result = target;
if ((value == 0) || ((maxDistance >= 0) && (value <= maxDistance * maxDistance))) k">return target;
float dist = sqrtf(value);

Chargement…
Annuler
Enregistrer