fix dot product
This commit is contained in:
parent
ea664944bb
commit
b12c5e31c3
@ -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) {
|
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) {
|
static inline t_fvec3 fvec3_cross(t_fvec3 a, t_fvec3 b) {
|
||||||
|
Loading…
Reference in New Issue
Block a user