Functions | |
| template<class T> T | diffabs (const T &v1, const T &v2) |
| Absolute value of difference between v1 and v2. | |
|
||||||||||||||||
|
Absolute value of difference between v1 and v2.
Definition at line 65 of file attributes.hh.
00066 {
00067 return v1 > v2 ? v1 - v2 : v2 - v1;
00068 }
|
1.3.6-20040222