src/misc/rect.hpp
branchcpp_gui
changeset 6294 6c74bf9cc5a4
parent 6278 c09f5e53af9b
child 6295 a88d8c2cff6e
--- a/src/misc/rect.hpp	Sat Mar 10 02:39:51 2007 +0000
+++ b/src/misc/rect.hpp	Sat Mar 10 04:52:01 2007 +0000
@@ -92,6 +92,31 @@
 	{
 		return PointT(PointRaw::x / coef, PointRaw::y / coef);
 	}
+
+	static const PointT& min()
+	{
+		static PointT val(std::numeric_limits<T>::min(), std::numeric_limits<T>::min());
+		return val;
+	}
+
+	static const PointT& zero()
+	{
+		static PointT val(0, 0);
+		return val;
+	}
+
+	static const PointT& one()
+	{
+		static PointT val(1, 1);
+		return val;
+	}
+
+	static const PointT& max()
+	{
+		static PointT val(std::numeric_limits<T>::max(), std::numeric_limits<T>::max());
+		return val;
+	}
+
 };