ARC_FObround added
This commit is contained in:
parent
c3361f640c
commit
5aede928d8
7 changed files with 62 additions and 0 deletions
|
|
@ -3,6 +3,10 @@
|
|||
|
||||
void ARC_Vector2_Normalize(ARC_Vector2 *vector){
|
||||
float length = sqrtf((vector->x * vector->x) + (vector->y * vector->y));
|
||||
if(length == 0){
|
||||
return;
|
||||
}
|
||||
|
||||
vector->x /= length;
|
||||
vector->y /= length;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue