Added [Cube|Rect]::ExtendTo(X, Y[, Z]);

Former-commit-id: 6f3a92644acd818f94088347cc6f1be939adb7f9
This commit is contained in:
Lynix
2013-02-19 01:10:47 +01:00
parent 8fff32e145
commit 49cdbc3c47
4 changed files with 28 additions and 14 deletions

View File

@@ -26,6 +26,7 @@ class NzRect
bool Contains(const NzVector2<T>& point) const;
bool Contains(const NzRect& rect) const;
NzRect& ExtendTo(T X, T Y);
NzRect& ExtendTo(const NzVector2<T>& point);
NzRect& ExtendTo(const NzRect& rect);
@@ -66,7 +67,7 @@ class NzRect
};
template<typename T>
std::ostream& operator<<(std::ostream& out, const NzRect<T>& vec);
std::ostream& operator<<(std::ostream& out, const NzRect<T>& rect);
typedef NzRect<double> NzRectd;
typedef NzRect<float> NzRectf;