Skip to content

Commit 017eef6

Browse files
committed
Add OneOverSqrt2 const
1 parent b23c567 commit 017eef6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

math.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const (
1010

1111
Delta float64 = 1e-6
1212

13-
Sqrt3 = 1.732050807568877293527446341505872367
13+
Sqrt3 = 1.732050807568877293527446341505872367
14+
OneOverSqrt2 = 1 / math.Sqrt2
1415
)
1516

1617
// ToRadians converts degrees to radians

0 commit comments

Comments
 (0)