removed unneeded Min call
This commit is contained in:
parent
520459bc6d
commit
ecda96a36f
|
@ -467,7 +467,7 @@ func (c Circle) Intersect(d Circle) Circle {
|
||||||
return C(0, center)
|
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{
|
return Circle{
|
||||||
Radius: math.Abs(radius),
|
Radius: math.Abs(radius),
|
||||||
|
|
Loading…
Reference in New Issue