diff --git a/src/engine/include/models/math/vector3.hpp b/src/engine/include/models/math/vector3.hpp index 0158d2e..a4bb4e0 100644 --- a/src/engine/include/models/math/vector3.hpp +++ b/src/engine/include/models/math/vector3.hpp @@ -52,7 +52,7 @@ public: float innerProduct(Vector3 &v); void set(const Vector3 &v); void rotate(const Vector3 &v, u8 inversed = false); - void set(const float &x, const float &y, const float &z); + void set(const float &t_x, const float &t_y, const float &t_z); void copy(Vector3 &v); float distanceTo(Vector3 &v); const void print() const; diff --git a/src/engine/models/math/vector3.cpp b/src/engine/models/math/vector3.cpp index a500ec8..e05b36c 100644 --- a/src/engine/models/math/vector3.cpp +++ b/src/engine/models/math/vector3.cpp @@ -236,11 +236,11 @@ float Vector3::innerProduct(Vector3 &v) // return (x * v.x + y * v.y + z * v.z); } -void Vector3::set(const float &x, const float &y, const float &z) +void Vector3::set(const float &t_x, const float &t_y, const float &t_z) { - this->x = x; - this->y = y; - this->z = z; + x = t_x; + y = t_y; + z = t_z; } void Vector3::rotate(const Vector3 &v, u8 inversed)