summaryrefslogtreecommitdiff
path: root/src/pkg/math/atan2.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/atan2.go')
-rw-r--r--src/pkg/math/atan2.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/math/atan2.go b/src/pkg/math/atan2.go
index efd5cb926..5ded1a412 100644
--- a/src/pkg/math/atan2.go
+++ b/src/pkg/math/atan2.go
@@ -14,14 +14,14 @@ func Atan2(x, y float64) float64 {
if x >= 0 {
return Pi/2;
}
- return -Pi/2;
+ return -Pi / 2;
}
q := Atan(x/y);
if y < 0 {
if q <= 0 {
- return q + Pi;
+ return q+Pi;
}
- return q - Pi;
+ return q-Pi;
}
return q;
}