diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-01-13 00:05:14 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-13 00:05:14 +0000 |
| commit | 5d94887e768c1269783db96b9caa3eade5da5a0d (patch) | |
| tree | 71aa73bd1a59904620d220263005148d37107c65 | |
| parent | 577049c69ec9ebc58ae2359d87a7c45f0d7d481e (diff) | |
| parent | 67d5b97ff962055a6caae6be7b04f3354980ecd0 (diff) | |
Merge pull request #3083 from Lperlind/master
Fix linalg shadowing error
| -rw-r--r-- | core/math/linalg/general.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/linalg/general.odin b/core/math/linalg/general.odin index a61fe9189..60185d64d 100644 --- a/core/math/linalg/general.odin +++ b/core/math/linalg/general.odin @@ -217,7 +217,7 @@ quaternion64_mul_vector3 :: proc "contextless" (q: $Q/quaternion64, v: $V/[3]$F/ Raw_Quaternion :: struct {xyz: [3]f16, r: f16} q := transmute(Raw_Quaternion)q - v := transmute([3]f16)v + v := v t := cross(2*q.xyz, v) return V(v + q.r*t + cross(q.xyz, t)) @@ -227,7 +227,7 @@ quaternion128_mul_vector3 :: proc "contextless" (q: $Q/quaternion128, v: $V/[3]$ Raw_Quaternion :: struct {xyz: [3]f32, r: f32} q := transmute(Raw_Quaternion)q - v := transmute([3]f32)v + v := v t := cross(2*q.xyz, v) return V(v + q.r*t + cross(q.xyz, t)) @@ -237,7 +237,7 @@ quaternion256_mul_vector3 :: proc "contextless" (q: $Q/quaternion256, v: $V/[3]$ Raw_Quaternion :: struct {xyz: [3]f64, r: f64} q := transmute(Raw_Quaternion)q - v := transmute([3]f64)v + v := v t := cross(2*q.xyz, v) return V(v + q.r*t + cross(q.xyz, t)) |