corrected area formula

This commit is contained in:
Ben Cragg 2019-01-30 08:38:51 +00:00
parent 5abf2d29a6
commit 0a0c8ff110
1 changed files with 1 additions and 1 deletions

View File

@ -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.