PointDistance returns the euclidean distance between p and p2
(p2 Point)
| 126 | |
| 127 | // PointDistance returns the euclidean distance between p and p2 |
| 128 | func (p *Point) PointDistance(p2 Point) float32 { |
| 129 | return math.Sqrt(p.PointDistanceSquared(p2)) |
| 130 | } |
| 131 | |
| 132 | // PointDistanceSquared returns the squared euclidean distance between p and p2 |
| 133 | func (p *Point) PointDistanceSquared(p2 Point) float32 { |
nothing calls this directly
no test coverage detected