diff options
author | bubnikv <bubnikv@gmail.com> | 2018-08-17 16:53:43 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-08-17 16:53:43 +0300 |
commit | 65011f93827a6e10757faef3d14ee068d9da8c94 (patch) | |
tree | 987d53bee4ebfa5d5dddbc3a14811c26953b2aa1 /xs/src/libnest2d | |
parent | 1ba64da3fee97433d6b580aae8fc8e9875143a66 (diff) |
Removed the x(), y(), z() Point/Pointf/Point3/Pointf3 accessors.
Diffstat (limited to 'xs/src/libnest2d')
-rw-r--r-- | xs/src/libnest2d/libnest2d/geometry_traits.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xs/src/libnest2d/libnest2d/geometry_traits.hpp b/xs/src/libnest2d/libnest2d/geometry_traits.hpp index dbd609201..9ba6b6826 100644 --- a/xs/src/libnest2d/libnest2d/geometry_traits.hpp +++ b/xs/src/libnest2d/libnest2d/geometry_traits.hpp @@ -137,25 +137,25 @@ struct PointLike { template<class RawPoint> static TCoord<RawPoint> x(const RawPoint& p) { - return p.x(); + return p(0); } template<class RawPoint> static TCoord<RawPoint> y(const RawPoint& p) { - return p.y(); + return p(1); } template<class RawPoint> static TCoord<RawPoint>& x(RawPoint& p) { - return p.x(); + return p(0); } template<class RawPoint> static TCoord<RawPoint>& y(RawPoint& p) { - return p.y(); + return p(1); } template<class RawPoint> |