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:
@@ -187,6 +187,14 @@ NzCube<T>& NzCube<T>::Set(const T cube[6])
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzCube<T>& NzCube<T>::Set(const NzCube& cube)
|
||||
{
|
||||
std::memcpy(this, &cube, sizeof(NzCube));
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzCube<T>& NzCube<T>::Set(const NzRect<T>& rect)
|
||||
{
|
||||
@@ -235,12 +243,6 @@ NzString NzCube<T>::ToString() const
|
||||
return ss << "Cube(" << x << ", " << y << ", " << z << ", " << width << ", " << height << ", " << depth << ')';
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzCube<T>::operator NzString() const
|
||||
{
|
||||
return ToString();
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T& NzCube<T>::operator[](unsigned int i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user