diff options
Diffstat (limited to 'src/pkg/math/atan2.go')
| -rw-r--r-- | src/pkg/math/atan2.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/math/atan2.go b/src/pkg/math/atan2.go index 95226b9d8..7165c539e 100644 --- a/src/pkg/math/atan2.go +++ b/src/pkg/math/atan2.go @@ -12,16 +12,16 @@ func Atan2(x, y float64) float64 { // Determine the quadrant and call atan. if x+y == x { if x >= 0 { - return Pi/2 + return Pi / 2 } return -Pi / 2; } - q := Atan(x/y); + q := Atan(x / y); if y < 0 { if q <= 0 { - return q+Pi + return q + Pi } - return q-Pi; + return q - Pi; } return q; } |
