- 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]));
- }
Undefined
By: Guest | Date: Feb 18 2010 19:00 | Format: None | Expires: never | Size: 166 B | Hits: 894
Latest pastes
1 days ago
2 days ago
5 days ago
6 days ago
6 days ago