removed unneeded Min call

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

View File

@ -459,7 +459,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),