Changeset 155
- Timestamp:
- 03/01/14 22:30:05 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/3d.h
r139 r155 40 40 Pt3D operator*(double d) const {return Pt3D(x*d,y*d,z*d);} 41 41 Pt3D operator/(double d) const {return Pt3D(x/d,y/d,z/d);} 42 int operator<(const Pt3D& p) const {return (x<p.x)&&(y<p.y)&&(z<p.z);} 43 ///< check if all coords are below the second point 44 int operator>(const Pt3D& p) const {return (x>p.x)&&(y>p.y)&&(z>p.z);} 45 ///< check if all coords are above the second point 46 int operator<=(const Pt3D& p) const {return (x<p.x)||(y<p.y)||(z<p.z);} 47 ///< check if some coords are below the second point 48 int operator>=(const Pt3D& p) const {return (x>p.x)||(y>p.y)||(z>p.z);} 49 ///< check if some coords are above the second point 42 bool allCoordsLowerThan(const Pt3D& p) const {return (x<p.x)&&(y<p.y)&&(z<p.z);} 43 bool allCoordsHigherThan(const Pt3D& p) const {return (x>p.x)&&(y>p.y)&&(z>p.z);} 50 44 void getMin(const Pt3D& p); 51 45 void getMax(const Pt3D& p);
Note: See TracChangeset
for help on using the changeset viewer.