Update gryphn_vec3.c

This commit is contained in:
Gregory Wells
2025-08-03 18:46:31 -04:00
parent e3286f119d
commit d7a13b16d1

View File

@@ -8,8 +8,8 @@ gnVec3 gnVec3Subtract(gnVec3 a, gnVec3 b) { return (gnVec3){
} }
gnVec3 gnVec3Add(gnVec3 a, gnVec3 b) { return (gnVec3){ gnVec3 gnVec3Add(gnVec3 a, gnVec3 b) { return (gnVec3){
.x = a.x + b.x, .x = a.x + b.x,
.b = a.y + b.y, .y = a.y + b.y,
.c = a.z + b.z }; .z = a.z + b.z };
} }
gnVec3 gnVec3Normalize(gnVec3 in) { gnVec3 gnVec3Normalize(gnVec3 in) {
float lengthOfVector = sqrt((in.x * in.x) + (in.y * in.y) + (in.z * in.z)); float lengthOfVector = sqrt((in.x * in.x) + (in.y * in.y) + (in.z * in.z));