Changeset 242
- Timestamp:
- Jan 19, 2011, 10:23:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/matrix.h
r240 r242 61 61 } \ 62 62 \ 63 inline floatlen() const \63 inline T sqlen() const \ 64 64 { \ 65 65 T acc = 0; \ 66 66 for (int n = 0; n < elems; n++) \ 67 67 acc += (*this)[n] * (*this)[n]; \ 68 return sqrtf((float)acc); \ 68 return acc; \ 69 } \ 70 \ 71 inline float len() const \ 72 { \ 73 return sqrtf((float)sqlen()); \ 69 74 } 70 75
Note: See TracChangeset
for help on using the changeset viewer.