コード例 #1
0
 static point_type get(const Segment<T>& segment, direction_1d dir) {
   return dir.to_int() ? segment.p1 : segment.p0;
 }
コード例 #2
0
 static void set(
     Segment<T>& segment, direction_1d dir, const point_type& point) {
   dir.to_int() ? segment.p1 = point : segment.p0 = point;;
 }
コード例 #3
0
ファイル: interval_data.hpp プロジェクト: Niko-r/geofeatures
 void set(direction_1d dir, coordinate_type value) {
   coords_[dir.to_int()] = value;
 }
コード例 #4
0
ファイル: interval_data.hpp プロジェクト: Niko-r/geofeatures
 coordinate_type get(direction_1d dir) const {
   return coords_[dir.to_int()];
 }
コード例 #5
0
ファイル: segment_data.hpp プロジェクト: KircheisHe/boost-svn
 void set(direction_1d dir, const point_type& point) {
   points_[dir.to_int()] = point;
 }
コード例 #6
0
ファイル: segment_data.hpp プロジェクト: KircheisHe/boost-svn
 point_type get(direction_1d dir) const {
   return points_[dir.to_int()];
 }
コード例 #7
0
ファイル: Line.hpp プロジェクト: Devendork/Slic3r
 static inline point_type get(const Line& line, direction_1d dir) {
     return dir.to_int() ? line.b : line.a;
 }