Minor changes to math module

-Fixed missing Set method: "X::Set(const X&)"
-Removed operator String


Former-commit-id: 690f161704ed85fc57a62b812af7933e390572b5
This commit is contained in:
Lynix
2013-02-16 19:21:14 +01:00
parent 3a4fb198e8
commit cdf632ac96
16 changed files with 48 additions and 72 deletions

View File

@@ -177,6 +177,14 @@ NzVector2<T>& NzVector2<T>::Set(const T vec[2])
return *this;
}
template<typename T>
NzVector2<T>& NzVector2<T>::Set(const NzVector2& vec)
{
std::memcpy(this, &vec, sizeof(NzVector2));
return *this;
}
template<typename T>
template<typename U>
NzVector2<T>& NzVector2<T>::Set(const NzVector2<U>& vec)
@@ -207,12 +215,6 @@ NzString NzVector2<T>::ToString() const
return ss << "Vector2(" << x << ", " << y << ')';
}
template<typename T>
NzVector2<T>::operator NzString() const
{
return ToString();
}
template<typename T>
NzVector2<T>::operator T*()
{