mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-30 07:53:01 +00:00
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;
|
||
|
}
|