Geant4 Cross Reference |
1 // Copyright (C) 2010, Guy Barrand. All rights 1 // Copyright (C) 2010, Guy Barrand. All rights reserved. 2 // See the file tools.license for terms. 2 // See the file tools.license for terms. 3 3 4 #ifndef tools_zb_point 4 #ifndef tools_zb_point 5 #define tools_zb_point 5 #define tools_zb_point 6 6 7 namespace tools { 7 namespace tools { 8 namespace zb { 8 namespace zb { 9 9 10 typedef int ZPos; 10 typedef int ZPos; 11 typedef double ZZ; 11 typedef double ZZ; 12 12 13 class point { 13 class point { 14 public: 14 public: 15 point():x(0),y(0),z(0){} 15 point():x(0),y(0),z(0){} 16 public: 16 public: 17 point(const point& a_from):x(a_from.x),y(a_f 17 point(const point& a_from):x(a_from.x),y(a_from.y),z(a_from.z){} 18 point& operator=(const point& a_from){ 18 point& operator=(const point& a_from){ 19 x = a_from.x; 19 x = a_from.x; 20 y = a_from.y; 20 y = a_from.y; 21 z = a_from.z; 21 z = a_from.z; 22 return *this; 22 return *this; 23 } 23 } 24 public: 24 public: 25 ZPos x; 25 ZPos x; 26 ZPos y; 26 ZPos y; 27 ZZ z; //not used in line,edge_table,polygon 27 ZZ z; //not used in line,edge_table,polygon 28 }; 28 }; 29 29 30 }} 30 }} 31 31 32 #endif 32 #endif