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:
@@ -164,6 +164,14 @@ NzRect<T>& NzRect<T>::Set(const T rect[4])
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzRect<T>& NzRect<T>::Set(const NzRect<T>& rect)
|
||||
{
|
||||
std::memcpy(this, &rect, sizeof(NzRect));
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzRect<T>& NzRect<T>::Set(const NzVector2<T>& vec1, const NzVector2<T>& vec2)
|
||||
{
|
||||
@@ -195,12 +203,6 @@ NzString NzRect<T>::ToString() const
|
||||
return ss << "Rect(" << x << ", " << y << ", " << width << ", " << height << ')';
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzRect<T>::operator NzString() const
|
||||
{
|
||||
return ToString();
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T& NzRect<T>::operator[](unsigned int i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user