use float instead for create point object

This commit is contained in:
Dhilan007 2013-11-08 14:13:39 +08:00
parent 089ea0a79e
commit 314f2ac62e
1 changed files with 10 additions and 10 deletions

View File

@ -293,16 +293,16 @@ Point Point::getIntersectPoint(const Point& A, const Point& B, const Point& C, c
return Point::ZERO;
}
const Point Point::ZERO = Point(0, 0);
const Point Point::ANCHOR_MIDDLE = Point(0.5, 0.5);
const Point Point::ANCHOR_BOTTOM_LEFT = Point(0, 0);
const Point Point::ANCHOR_TOP_LEFT = Point(0, 1);
const Point Point::ANCHOR_BOTTOM_RIGHT = Point(1, 0);
const Point Point::ANCHOR_TOP_RIGHT = Point(1, 1);
const Point Point::ANCHOR_MIDDLE_RIGHT = Point(1, .5);
const Point Point::ANCHOR_MIDDLE_LEFT = Point(0, 0.5);
const Point Point::ANCHOR_MIDDLE_TOP = Point(0.5, 1);
const Point Point::ANCHOR_MIDDLE_BOTTOM = Point(0.5, 0);
const Point Point::ZERO = Point(0.0f, 0.0f);
const Point Point::ANCHOR_MIDDLE = Point(0.5f, 0.5f);
const Point Point::ANCHOR_BOTTOM_LEFT = Point(0.0f, 0.0f);
const Point Point::ANCHOR_TOP_LEFT = Point(0.0f, 1.0f);
const Point Point::ANCHOR_BOTTOM_RIGHT = Point(1.0f, 0.0f);
const Point Point::ANCHOR_TOP_RIGHT = Point(1.0f, 1.0f);
const Point Point::ANCHOR_MIDDLE_RIGHT = Point(1.0f, 0.5f);
const Point Point::ANCHOR_MIDDLE_LEFT = Point(0.0f, 0.5f);
const Point Point::ANCHOR_MIDDLE_TOP = Point(0.5f, 1.0f);
const Point Point::ANCHOR_MIDDLE_BOTTOM = Point(0.5f, 0.0f);
// implementation of Size