Changeset 62f19a for src/base/index.hpp
- Timestamp:
- Sep 11, 2011, 4:17:52 PM (14 years ago)
- Children:
- c2f74f
- Parents:
- d0b958
- File:
-
- 1 edited
-
src/base/index.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/base/index.hpp
rd0b958 r62f19a 46 46 47 47 const Index Abs() {return Index(abs(i[0]), abs(i[1]), abs(i[2]));} 48 int Length() const {return sqrt( i[0]*i[0]+i[1]*i[1]+i[2]*i[2]);}48 int Length() const {return sqrt(double(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]));} 49 49 int Max() const {return std::max(std::max(i[0],i[1]),i[2]);} 50 50 int Min() const {return std::min(std::min(i[0],i[1]),i[2]);}
Note:
See TracChangeset
for help on using the changeset viewer.
