mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 02:34:35 +00:00
Fixed operator*(mat4x4, vec4)
Calculate Add0, Add1, and Add2 using operator+ (instead of *)
This commit is contained in:
parent
74d1f84e32
commit
065d9848f7
@ -731,13 +731,13 @@ namespace detail
|
|||||||
typename tmat4x4<T, P>::col_type const Mov1(v[1]);
|
typename tmat4x4<T, P>::col_type const Mov1(v[1]);
|
||||||
typename tmat4x4<T, P>::col_type const Mul0 = m[0] * Mov0;
|
typename tmat4x4<T, P>::col_type const Mul0 = m[0] * Mov0;
|
||||||
typename tmat4x4<T, P>::col_type const Mul1 = m[1] * Mov1;
|
typename tmat4x4<T, P>::col_type const Mul1 = m[1] * Mov1;
|
||||||
typename tmat4x4<T, P>::col_type const Add0 = Mul0 * Mul1;
|
typename tmat4x4<T, P>::col_type const Add0 = Mul0 + Mul1;
|
||||||
typename tmat4x4<T, P>::col_type const Mov2(v[2]);
|
typename tmat4x4<T, P>::col_type const Mov2(v[2]);
|
||||||
typename tmat4x4<T, P>::col_type const Mov3(v[3]);
|
typename tmat4x4<T, P>::col_type const Mov3(v[3]);
|
||||||
typename tmat4x4<T, P>::col_type const Mul2 = m[2] * Mov2;
|
typename tmat4x4<T, P>::col_type const Mul2 = m[2] * Mov2;
|
||||||
typename tmat4x4<T, P>::col_type const Mul3 = m[3] * Mov3;
|
typename tmat4x4<T, P>::col_type const Mul3 = m[3] * Mov3;
|
||||||
typename tmat4x4<T, P>::col_type const Add1 = Mul2 * Mul3;
|
typename tmat4x4<T, P>::col_type const Add1 = Mul2 + Mul3;
|
||||||
typename tmat4x4<T, P>::col_type const Add2 = Add0 * Add1;
|
typename tmat4x4<T, P>::col_type const Add2 = Add0 + Add1;
|
||||||
return Add2;
|
return Add2;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user