From 0a0c8ff1100050532d73a8524e48c3c4c7cc0e2a Mon Sep 17 00:00:00 2001 From: Ben Cragg Date: Wed, 30 Jan 2019 08:38:51 +0000 Subject: [PATCH] corrected area formula --- geometry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry.go b/geometry.go index 087b1ad..175b268 100644 --- a/geometry.go +++ b/geometry.go @@ -368,7 +368,7 @@ func (c Circle) Norm() Circle { // Area returns the area of the Circle. func (c Circle) Area() float64 { - return math.Pi * c.Radius * 2 + return math.Pi * math.Pow(c.Radius, 2) } // Moved returns the Circle moved by the given vector delta.