Tweaks
This commit is contained in:
parent
3cb4ef2599
commit
e7f48eb16b
2 changed files with 5 additions and 5 deletions
|
@ -328,9 +328,9 @@ RMAPI Vector2 Vector2Normalize(Vector2 v)
|
|||
|
||||
if (length > 0)
|
||||
{
|
||||
float ilength = 1.0f / length;
|
||||
result.x = v.x * ilength;
|
||||
result.y = v.y * ilength;
|
||||
float ilength = 1.0f/length;
|
||||
result.x = v.x*ilength;
|
||||
result.y = v.y*ilength;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue