From 7e234c79aa082673e5ffa2511b371206b96a737c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Bispo?= Date: Mon, 16 Sep 2024 15:25:07 -0300 Subject: [PATCH] Add comment explaining what Vector2Limit does --- src/raymath.h | 1 + 1 file changed, 1 insertion(+) 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))