Changeset 80 for cpp/gdk/3d.h
- Timestamp:
- 02/08/13 03:22:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/gdk/3d.h
r66 r80 6 6 #define _3D_H_ 7 7 8 #include <memory.h> 8 #ifdef SHP 9 #include <string.h> //memcpy 10 #else 11 #include <memory.h> //memcpy 12 #endif 9 13 10 14 /********************************** … … 49 53 double operator()() const; 50 54 /** vector length = \f$\sqrt{x^2+y^2+z^2}\f$ */ 51 double length() const {return operator()();} 55 double length() const {return operator()();} 56 double length2() const {return x*x+y*y+z*z;} 52 57 double distanceTo(const Pt3D& p) const; 53 58 double manhattanDistanceTo(const Pt3D& p) const; … … 131 136 132 137 #endif 133
Note: See TracChangeset
for help on using the changeset viewer.