From 3ec8616aa76390280c7b51696b731a85e070de0f Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 9 Apr 2012 18:09:28 +0200 Subject: utils/rectangle: removed external constructors and added helper constructors that generate a rectangle from GLint[4] or FTBBox are now helper functions to remove the external dependencies from the helper class --- src/utils/rectangle.hpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/utils') diff --git a/src/utils/rectangle.hpp b/src/utils/rectangle.hpp index f3f4477d..b1e67ba8 100644 --- a/src/utils/rectangle.hpp +++ b/src/utils/rectangle.hpp @@ -27,8 +27,6 @@ #ifndef RECTANGLE_HPP #define RECTANGLE_HPP -#include - #include "point.hpp" #include "dimension.hpp" #include "math.hpp" @@ -66,18 +64,6 @@ namespace usdx { } - Rectangle(const T rectangle[]) : - point1(rectangle[0], rectangle[1]), - point2(rectangle[0] + rectangle[2], rectangle[1] + rectangle[3]) - { - } - - Rectangle(const FTBBox& bbox) : - point1((T)bbox.Upper().X(), (T)bbox.Upper().Y()), - point2((T)bbox.Lower().X(), (T)bbox.Lower().Y()) - { - } - Rectangle(const Rectangle& rectangle) : point1(rectangle.point1), point2(rectangle.point2) { -- cgit v1.2.3