You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2009/10/28 22:52:39 UTC

svn commit: r830770 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java

Author: luc
Date: Wed Oct 28 21:52:39 2009
New Revision: 830770

URL: http://svn.apache.org/viewvc?rev=830770&view=rev
Log:
changed TWO_PI visibility to public

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java?rev=830770&r1=830769&r2=830770&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java Wed Oct 28 21:52:39 2009
@@ -38,6 +38,9 @@
      */
     public static final double SAFE_MIN = 0x1.0p-1022;
 
+    /** 2 π. */
+    public static final double TWO_PI = 2 * Math.PI;
+
     /** -1.0 cast as a byte. */
     private static final byte  NB = (byte)-1;
 
@@ -56,9 +59,6 @@
     /** 0.0 cast as a short. */
     private static final short ZS = (short)0;
 
-    /** 2 π. */
-    private static final double TWO_PI = 2 * Math.PI;
-
     /** Gap between NaN and regular numbers. */
     private static final int NAN_GAP = 4 * 1024 * 1024;