fix dot product

This commit is contained in:
veclav talica 2024-07-30 21:56:23 +03:00
parent ea664944bb
commit b12c5e31c3

View File

@ -79,7 +79,7 @@ static inline t_fvec3 fvec3_scale(t_fvec3 a, float s) {
}
static inline float fvec3_dot(t_fvec3 a, t_fvec3 b) {
return a.x * b.x + a.x * b.x + a.z * b.z;
return a.x * b.x + a.y * b.y + a.z * b.z;
}
static inline t_fvec3 fvec3_cross(t_fvec3 a, t_fvec3 b) {