square of Euclidean distance between pair of pts */
| 670 | |
| 671 | /* square of Euclidean distance between pair of pts */ |
| 672 | int |
| 673 | dist2(coordxy x0, coordxy y0, coordxy x1, coordxy y1) |
| 674 | { |
| 675 | coordxy dx = x0 - x1, dy = y0 - y1; |
| 676 | |
| 677 | return dx * dx + dy * dy; |
| 678 | } |
| 679 | |
| 680 | /* integer square root function without using floating point */ |
| 681 | int |
no outgoing calls
no test coverage detected