diff --git a/geometry.go b/geometry.go index 9a4265caef0ba6eb8c33415423aac9fdff45eb7c..72485b982b591791563134ed22463522dd800f61 100644 --- a/geometry.go +++ b/geometry.go @@ -423,7 +423,7 @@ func (c Circle) Union(d Circle) Circle { // Calculate center for encompassing Circle theta := .5 + (biggerC.Radius-smallerC.Radius)/(2*dist) - center := smallerC.Center.Scaled(1 - theta).Add(biggerC.Center.Scaled(theta)) + center := Lerp(smallerC.Center, biggerC.Center, theta) return Circle{ Radius: r,