- float GetDistance(const float *v1,const float *v2)
- {
- #define POW2(x) ((x)*(x))
- return sqrt(POW2(v1[0] - v2[0]) + POW2(v1[1] - v2[1]) + POW2(v1[2] - v2[2]));
- }

By: Guest | Date: Feb 18 2010 19:00 | Format: None | Expires: never | Size: 166 B | Hits: 916
Latest pastes
1 hours ago
1 hours ago
1 hours ago
3 hours ago
6 hours ago