diff --git a/src/box2d.cpp b/src/box2d.cpp index 2ed9c7aa9..3ce491153 100644 --- a/src/box2d.cpp +++ b/src/box2d.cpp @@ -88,9 +88,6 @@ box2d::box2d(box2d_type const& rhs, const agg::trans_affine& tr) } template -#if !defined(__SUNPRO_CC) -inline -#endif bool box2d::operator==(const box2d& other) const { return minx_==other.minx_ && @@ -100,36 +97,24 @@ bool box2d::operator==(const box2d& other) const } template -#if !defined(__SUNPRO_CC) -inline -#endif T box2d::minx() const { return minx_; } template -#if !defined(__SUNPRO_CC) -inline -#endif T box2d::maxx() const { return maxx_; } template -#if !defined(__SUNPRO_CC) -inline -#endif T box2d::miny() const { return miny_; } template -#if !defined(__SUNPRO_CC) -inline -#endif T box2d::maxy() const { return maxy_; @@ -160,27 +145,18 @@ void box2d::set_maxy(T v) } template -#if !defined(__SUNPRO_CC) -inline -#endif T box2d::width() const { return maxx_-minx_; } template -#if !defined(__SUNPRO_CC) -inline -#endif T box2d::height() const { return maxy_-miny_; } template -#if !defined(__SUNPRO_CC) -inline -#endif void box2d::width(T w) { T cx=center().x; @@ -189,9 +165,6 @@ void box2d::width(T w) } template -#if !defined(__SUNPRO_CC) -inline -#endif void box2d::height(T h) { T cy=center().y; @@ -200,9 +173,6 @@ void box2d::height(T h) } template -#if !defined(__SUNPRO_CC) -inline -#endif coord box2d::center() const { return coord(static_cast(0.5*(minx_+maxx_)), @@ -210,18 +180,12 @@ coord box2d::center() const } template -#if !defined(__SUNPRO_CC) -inline -#endif void box2d::expand_to_include(const coord& c) { expand_to_include(c.x,c.y); } template -#if !defined(__SUNPRO_CC) -inline -#endif void box2d::expand_to_include(T x,T y) { if (x::expand_to_include(const box2d &other) } template -#if !defined(__SUNPRO_CC) -inline -#endif bool box2d::contains(const coord &c) const { return contains(c.x,c.y); } template -#if !defined(__SUNPRO_CC) -inline -#endif bool box2d::contains(T x,T y) const { return x>=minx_ && x<=maxx_ && y>=miny_ && y<=maxy_; } template -#if !defined(__SUNPRO_CC) -inline -#endif bool box2d::contains(const box2d &other) const { return other.minx_>=minx_ && @@ -270,27 +225,18 @@ bool box2d::contains(const box2d &other) const } template -#if !defined(__SUNPRO_CC) -inline -#endif bool box2d::intersects(const coord &c) const { return intersects(c.x,c.y); } template -#if !defined(__SUNPRO_CC) -inline -#endif bool box2d::intersects(T x,T y) const { return !(x>maxx_ || xmaxy_ || y -#if !defined(__SUNPRO_CC) -inline -#endif bool box2d::intersects(const box2d &other) const { return !(other.minx_>maxx_ || other.maxx_::intersects(const box2d &other) const } template -#if !defined(__SUNPRO_CC) -inline -#endif box2d box2d::intersect(const box2d_type& other) const { if (intersects(other)) { @@ -317,9 +260,6 @@ box2d box2d::intersect(const box2d_type& other) const } template -#if !defined(__SUNPRO_CC) -inline -#endif void box2d::re_center(T cx,T cy) { T dx=cx-center().x; @@ -331,18 +271,12 @@ void box2d::re_center(T cx,T cy) } template -#if !defined(__SUNPRO_CC) -inline -#endif void box2d::re_center(const coord &c) { re_center(c.x,c.y); } template -#if !defined(__SUNPRO_CC) -inline -#endif void box2d::init(T x0,T y0,T x1,T y1) { if (x0::init(T x0,T y0,T x1,T y1) } template -#if !defined(__SUNPRO_CC) -inline -#endif void box2d::clip(const box2d_type& other) { minx_ = std::max(minx_,other.minx()); @@ -376,9 +307,6 @@ void box2d::clip(const box2d_type& other) } template -#if !defined(__SUNPRO_CC) -inline -#endif void box2d::pad(T padding) { minx_ -= padding; @@ -403,9 +331,6 @@ inline bool box2d::from_string(std::string const& str) } template -#if !defined(__SUNPRO_CC) -inline -#endif bool box2d::valid() const { return (minx_ <= maxx_ && miny_ <= maxy_) ;