From bfd75003a4952e838007dba8ab0e91516567fc67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20Sobczy=C5=84ski?= Date: Wed, 4 Nov 2020 22:46:47 +0100 Subject: [PATCH] fixed naming convention --- src/engine/include/models/math/vector3.hpp | 2 +- src/engine/models/math/vector3.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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)