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:
@@ -232,6 +232,14 @@ NzVector3<T>& NzVector3<T>::Set(const NzVector2<T>& vec, T Z)
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector3<T>& NzVector3<T>::Set(const NzVector3& vec)
|
||||
{
|
||||
std::memcpy(this, &vec, sizeof(NzVector3));
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
template<typename U>
|
||||
NzVector3<T>& NzVector3<T>::Set(const NzVector3<U>& vec)
|
||||
@@ -263,12 +271,6 @@ NzString NzVector3<T>::ToString() const
|
||||
return ss << "Vector3(" << x << ", " << y << ", " << z <<')';
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector3<T>::operator NzString() const
|
||||
{
|
||||
return ToString();
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector3<T>::operator T*()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user