Add comment explaining what Vector2Limit does
This commit is contained in:
parent
719de8db39
commit
7e234c79aa
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user