removed unneeded Min call

This commit is contained in:
Ben Cragg 2019-01-29 12:27:38 +00:00
parent 520459bc6d
commit ecda96a36f
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ func (c Circle) Intersect(d Circle) Circle {
return C(0, center)
}
radius := math.Min(0, c.Center.To(d.Center).Len()-(c.Radius+d.Radius))
radius := c.Center.To(d.Center).Len() - (c.Radius + d.Radius)
return Circle{
Radius: math.Abs(radius),