Return the square of the magnitude between (x1, y1) and (x2, y2)
| 399 | |
| 400 | // Return the square of the magnitude between (x1, y1) and (x2, y2) |
| 401 | double mag2(double x1, double y1, double x2, double y2) |
| 402 | { |
| 403 | return (x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1); |
| 404 | } |
| 405 | |
| 406 | } // unnamed namespace |
| 407 |
no outgoing calls
no test coverage detected