mirror of https://github.com/axmolengine/axmol.git
use float instead for create point object
This commit is contained in:
parent
089ea0a79e
commit
314f2ac62e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue