PointDistance Returns the euclidean distance from the point p to the line segment l
(point Point)
| 334 | // PointDistance Returns the euclidean distance from the point p to the |
| 335 | // line segment l |
| 336 | func (l *Line) PointDistance(point Point) float32 { |
| 337 | return math.Sqrt(l.PointDistanceSquared(point)) |
| 338 | } |
| 339 | |
| 340 | // PointDistanceSquared returns the squared euclidean distance from the point p |
| 341 | // to the line segment l |