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:
@@ -184,6 +184,14 @@ NzVector4<T>& NzVector4<T>::Set(const NzVector3<T>& vec, T W)
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector4<T>& NzVector4<T>::Set(const NzVector4& vec)
|
||||
{
|
||||
std::memcpy(this, &vec, sizeof(NzVector4));
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
template<typename U>
|
||||
NzVector4<T>& NzVector4<T>::Set(const NzVector4<U>& vec)
|
||||
@@ -204,12 +212,6 @@ NzString NzVector4<T>::ToString() const
|
||||
return ss << "Vector4(" << x << ", " << y << ", " << z << ", " << w << ')';
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector4<T>::operator NzString() const
|
||||
{
|
||||
return ToString();
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector4<T>::operator T*()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user