mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-14 02:50:23 +00:00
* z64 - a * z64 - b * z64 - c * z64 - d * z64 - e * z64 - f * z64 - g * z64 - h * z64 - i * z64 - l * z64 - m * z64 - o * z64 - p * z64 - q * z64 - r * z64 - s * z64 - t * z64 - v * restore file * fix merge * fix merge --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
10 lines
238 B
C
10 lines
238 B
C
#include "ultra64.h"
|
|
#include "z_math.h" // TODO: libultra should not have access to game-side headers
|
|
|
|
void guNormalize(f32* x, f32* y, f32* z) {
|
|
f32 m = 1 / sqrtf(SQ(*x) + SQ(*y) + SQ(*z));
|
|
|
|
*x *= m;
|
|
*y *= m;
|
|
*z *= m;
|
|
}
|