mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-05-30 00:47:34 -04:00
5c23113592
* libultra from sm64 integrated; 3 libultra functions matched * All of libultra done! authored-by: farisawan-2000 <farisawan.2000@gmail.com>
9 lines
191 B
C
9 lines
191 B
C
#include "libultra_internal.h"
|
|
|
|
void guNormalize(f32 *x, f32 *y, f32 *z) {
|
|
f32 tmp = 1.0f / sqrtf(*x * *x + *y * *y + *z * *z);
|
|
*x = *x * tmp;
|
|
*y = *y * tmp;
|
|
*z = *z * tmp;
|
|
}
|