diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-12-02 00:01:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 00:01:51 +0100 |
commit | 213ee89ae8424ea9a203312472866ccc76c2e511 (patch) | |
tree | f20c1e48e16f67893c9c1bab143c615ed981af55 /core/math/vector3.cpp | |
parent | ff6789adc4c4d761d11792a024245ea65d95a8b9 (diff) | |
parent | a367378f9ebc95cbd4e595feb95dd64b0f3f2c22 (diff) |
Merge pull request #55529 from raulsntos/rename-vector-params
Diffstat (limited to 'core/math/vector3.cpp')
-rw-r--r-- | core/math/vector3.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math/vector3.cpp b/core/math/vector3.cpp index 42e3da0b27..b9bd04b8c1 100644 --- a/core/math/vector3.cpp +++ b/core/math/vector3.cpp @@ -108,10 +108,10 @@ Vector3 Vector3::move_toward(const Vector3 &p_to, const real_t p_delta) const { return len <= p_delta || len < CMP_EPSILON ? p_to : v + vd / len * p_delta; } -Basis Vector3::outer(const Vector3 &p_b) const { - Vector3 row0(x * p_b.x, x * p_b.y, x * p_b.z); - Vector3 row1(y * p_b.x, y * p_b.y, y * p_b.z); - Vector3 row2(z * p_b.x, z * p_b.y, z * p_b.z); +Basis Vector3::outer(const Vector3 &p_with) const { + Vector3 row0(x * p_with.x, x * p_with.y, x * p_with.z); + Vector3 row1(y * p_with.x, y * p_with.y, y * p_with.z); + Vector3 row2(z * p_with.x, z * p_with.y, z * p_with.z); return Basis(row0, row1, row2); } |