Cleaned interface

Former-commit-id: cdd284de8396d5988853c84d5db17bfa6fa0ba51
This commit is contained in:
Lynix
2013-06-09 22:05:05 +02:00
parent 0612e9bea5
commit 6b2af70f1d
8 changed files with 28 additions and 28 deletions

View File

@@ -23,7 +23,7 @@ class NzBox
NzBox(T X, T Y, T Z, T Width, T Height, T Depth);
NzBox(const T box[6]);
NzBox(const NzRect<T>& rect);
NzBox(const NzVector3<T>& size);
NzBox(const NzVector3<T>& lengths);
NzBox(const NzVector3<T>& vec1, const NzVector3<T>& vec2);
template<typename U> explicit NzBox(const NzBox<U>& box);
NzBox(const NzBox& box) = default;
@@ -60,7 +60,7 @@ class NzBox
NzBox& Set(const T box[6]);
NzBox& Set(const NzBox& box);
NzBox& Set(const NzRect<T>& rect);
NzBox& Set(const NzVector3<T>& size);
NzBox& Set(const NzVector3<T>& lengths);
NzBox& Set(const NzVector3<T>& vec1, const NzVector3<T>& vec2);
template<typename U> NzBox& Set(const NzBox<U>& box);

View File

@@ -29,9 +29,9 @@ NzBox<T>::NzBox(const NzRect<T>& rect)
}
template<typename T>
NzBox<T>::NzBox(const NzVector3<T>& size)
NzBox<T>::NzBox(const NzVector3<T>& lengths)
{
Set(size);
Set(lengths);
}
template<typename T>
@@ -344,9 +344,9 @@ NzBox<T>& NzBox<T>::Set(const NzRect<T>& rect)
}
template<typename T>
NzBox<T>& NzBox<T>::Set(const NzVector3<T>& size)
NzBox<T>& NzBox<T>::Set(const NzVector3<T>& lengths)
{
return Set(size.x, size.y, size.z);
return Set(lengths.x, lengths.y, lengths.z);
}
template<typename T>

View File

@@ -18,7 +18,7 @@ class NzRect
NzRect(T Width, T Height);
NzRect(T X, T Y, T Width, T Height);
NzRect(const T rect[4]);
NzRect(const NzVector2<T>& size);
NzRect(const NzVector2<T>& lengths);
NzRect(const NzVector2<T>& vec1, const NzVector2<T>& vec2);
template<typename U> explicit NzRect(const NzRect<U>& rect);
NzRect(const NzRect& rect) = default;
@@ -50,7 +50,7 @@ class NzRect
NzRect& Set(T X, T Y, T Width, T Height);
NzRect& Set(const T rect[4]);
NzRect& Set(const NzRect<T>& rect);
NzRect& Set(const NzVector2<T>& size);
NzRect& Set(const NzVector2<T>& lengths);
NzRect& Set(const NzVector2<T>& vec1, const NzVector2<T>& vec2);
template<typename U> NzRect& Set(const NzRect<U>& rect);

View File

@@ -29,9 +29,9 @@ NzRect<T>::NzRect(const T vec[4])
}
template<typename T>
NzRect<T>::NzRect(const NzVector2<T>& size)
NzRect<T>::NzRect(const NzVector2<T>& lengths)
{
Set(size);
Set(lengths);
}
template<typename T>
@@ -245,9 +245,9 @@ NzRect<T>& NzRect<T>::Set(const NzRect<T>& rect)
}
template<typename T>
NzRect<T>& NzRect<T>::Set(const NzVector2<T>& size)
NzRect<T>& NzRect<T>::Set(const NzVector2<T>& lengths)
{
return Set(size.x, size.y);
return Set(lengths.x, lengths.y);
}
template<typename T>