22 #ifndef GRAPHICS_TRANSFORM_TOOLS_H 23 #define GRAPHICS_TRANSFORM_TOOLS_H 25 #include "common/rect.h" 26 #include "graphics/transform_struct.h" 30 static const float kEpsilon = 0.00001f;
36 FloatPoint(
float x1,
float y1) : x(x1), y(y1) {}
38 bool operator==(
const FloatPoint &p)
const {
return fabs(x - p.x) < kEpsilon && fabs(y - p.y) < kEpsilon; }
39 bool operator!=(
const FloatPoint &p)
const {
return fabs(x - p.x) > kEpsilon || fabs(y - p.y) > kEpsilon; }
Definition: formatinfo.h:28
Definition: transform_tools.h:32
int16 x
Definition: rect.h:46
int16 y
Definition: rect.h:47