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

@@ -29,6 +29,7 @@ class NzCube
bool Contains(const NzVector3<T>& point) const;
bool Contains(const NzCube& cube) const;
NzCube& ExtendTo(T X, T Y, T Z);
NzCube& ExtendTo(const NzVector3<T>& point);
NzCube& ExtendTo(const NzCube& cube);
@@ -71,7 +72,7 @@ class NzCube
};
template<typename T>
std::ostream& operator<<(std::ostream& out, const NzCube<T>& vec);
std::ostream& operator<<(std::ostream& out, const NzCube<T>& cube);
typedef NzCube<double> NzCubed;
typedef NzCube<float> NzCubef;