** Quickly compute the square of the distance; avoids expensive sqrt() call on each invocation */
| 322 | ** Quickly compute the square of the distance; avoids expensive sqrt() call on each invocation |
| 323 | */ |
| 324 | double msSquareDistancePointToPoint(pointObj *a, pointObj *b) |
| 325 | { |
| 326 | double dx, dy; |
| 327 | |
| 328 | dx = a->x - b->x; |
| 329 | dy = a->y - b->y; |
| 330 | |
| 331 | return(dx*dx + dy*dy); |
| 332 | } |
| 333 | |
| 334 | double msDistancePointToSegment(pointObj *p, pointObj *a, pointObj *b) |
| 335 | { |
no outgoing calls
no test coverage detected