24 #ifndef GNASH_POINT2DH
25 #define GNASH_POINT2DH
29 #include <boost/cstdint.hpp>
56 Point2d(boost::int32_t cx, boost::int32_t cy)
70 x( p0.
x + (boost::int32_t)((p1.
x - p0.
x) * t)),
71 y( p0.
y + (boost::int32_t)((p1.
y - p0.
y) * t))
96 x = p0.
x + (boost::int32_t)((p1.
x - p0.
x) *
t);
97 y = p0.
y + (boost::int32_t)((p1.
y - p0.
y) *
t);
105 boost::int64_t hside = p1.
x - p0.
x;
106 boost::int64_t vside = p1.
y - p0.
y;
108 return hside*hside + vside*vside;
120 return (boost::int32_t)( std::sqrt( static_cast<double>(
squareDistance(p)) ) );
125 return (
x == p.
x) && (
y == p.
y);
130 return ! (*
this ==
p);
138 return os <<
"Point2d(" << p.
x <<
"," << p.
y <<
")";
147 #endif // GNASH_POINT2DH