return the index of the largest component (fabs)
| 107 | } |
| 108 | // return the index of the largest component (fabs) |
| 109 | static int LargestAbsComponent(const PJ_XYZ &p) { |
| 110 | PJ_XYZ temp = Abs(p); |
| 111 | return temp.x > temp.y ? temp.x > temp.z ? 0 : 2 : temp.y > temp.z ? 1 : 2; |
| 112 | } |
| 113 | |
| 114 | // ================================================= |
| 115 | // |