| 300 | } |
| 301 | |
| 302 | float GetDistance(vec v1, vec v2) |
| 303 | { |
| 304 | if ((v1.x == 0) && (v2.x == 0) && (v1.y == 0) && (v2.y == 0) && (v1.z == 0) && |
| 305 | (v2.z == 0)) |
| 306 | return 0.0f; |
| 307 | |
| 308 | return v1.dist(v2); |
| 309 | } |
| 310 | |
| 311 | // As GetDistance(), but doesn take height in account. |
| 312 | float Get2DDistance(vec v1, vec v2) |
no test coverage detected