Fixed warnings generated by go vet
This commit is contained in:
+2
-2
@@ -18,8 +18,8 @@ func (o Obstacle) distance_from_point(p v.Point2d) float32 {
|
||||
|
||||
dist = math.Min(dist, float64(p.Sub(o.Bounds.A).Mag()))
|
||||
dist = math.Min(dist, float64(p.Sub(o.Bounds.B).Mag()))
|
||||
dist = math.Min(dist, float64(p.Sub(v.Point2d{o.Bounds.A.X, o.Bounds.B.Y}).Mag()))
|
||||
dist = math.Min(dist, float64(p.Sub(v.Point2d{o.Bounds.B.X, o.Bounds.A.Y}).Mag()))
|
||||
dist = math.Min(dist, float64(p.Sub(v.Point2d{X: o.Bounds.A.X, Y: o.Bounds.B.Y}).Mag()))
|
||||
dist = math.Min(dist, float64(p.Sub(v.Point2d{X: o.Bounds.B.X, Y: o.Bounds.A.Y}).Mag()))
|
||||
|
||||
return float32(dist)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user