corrected area formula

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

View File

@ -360,7 +360,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.