diff --git a/src/raymath.h b/src/raymath.h index 2286a8d09..d9e5f7a12 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -393,6 +393,7 @@ RMAPI Vector2 Vector2Normalize(Vector2 v) return result; } +// Limit vector's length to the limit value RMAPI Vector2 Vector2Limit(Vector2 v, float limit) { Vector2 result = {v.x, x.y}; float length = sqrtf((v.x * v.x) + (v.y * v.y))