diff --git a/include/core/Basis.hpp b/include/core/Basis.hpp index b559b00..1ab61da 100644 --- a/include/core/Basis.hpp +++ b/include/core/Basis.hpp @@ -22,27 +22,27 @@ private: template class ColumnVector3 { private: - template + template class ColumnVectorComponent { private: Vector3 elements[3]; protected: - inline ColumnVectorComponent &operator=(const ColumnVectorComponent &p_value) { + inline ColumnVectorComponent &operator=(const ColumnVectorComponent &p_value) { return *this = real_t(p_value); } - - inline ColumnVectorComponent(const ColumnVectorComponent &p_value) { + + inline ColumnVectorComponent(const ColumnVectorComponent &p_value) { *this = real_t(p_value); } - inline ColumnVectorComponent &operator=(const real_t &p_value) { - element[component][column] = p_value; + inline ColumnVectorComponent &operator=(const real_t &p_value) { + elements[component][column1] = p_value; return *this; } inline operator real_t() const { - return element[component][column]; + return elements[component][column1]; } }; @@ -271,7 +271,7 @@ private: } inline operator String() const { - return String(Vector3(*this)) + return String(Vector3(*this)); } };