add TAU as alias for TWO_PI (issue #1488)

This commit is contained in:
benfry
2013-01-22 02:55:43 +00:00
parent 1b43bdcf15
commit 3cffa8efe6
3 changed files with 10 additions and 4 deletions
@@ -101,6 +101,7 @@ public interface PConstants {
static final float THIRD_PI = PI / 3.0f;
static final float QUARTER_PI = PI / 4.0f;
static final float TWO_PI = PI * 2.0f;
static final float TAU = PI * 2.0f;
static final float DEG_TO_RAD = PI/180.0f;
static final float RAD_TO_DEG = 180.0f/PI;
+6 -4
View File
@@ -128,8 +128,8 @@ public interface PConstants {
* @see PConstants#TWO_PI
* @see PConstants#QUARTER_PI
*/
static final float HALF_PI = PI / 2.0f;
static final float THIRD_PI = PI / 3.0f;
static final float HALF_PI = (float) (Math.PI / 2.0);
static final float THIRD_PI = (float) (Math.PI / 3.0);
/**
* ( begin auto-generated from QUARTER_PI.xml )
*
@@ -144,7 +144,7 @@ public interface PConstants {
* @see PConstants#TWO_PI
* @see PConstants#HALF_PI
*/
static final float QUARTER_PI = PI / 4.0f;
static final float QUARTER_PI = (float) (Math.PI / 4.0);
/**
* ( begin auto-generated from TWO_PI.xml )
*
@@ -159,7 +159,9 @@ public interface PConstants {
* @see PConstants#HALF_PI
* @see PConstants#QUARTER_PI
*/
static final float TWO_PI = PI * 2.0f;
static final float TWO_PI = (float) (2.0 * Math.PI);
static final float TAU = (float) (2.0 * Math.PI);
static final float DEG_TO_RAD = PI/180.0f;
static final float RAD_TO_DEG = 180.0f/PI;
+3
View File
@@ -36,6 +36,9 @@ X also problematic with it not being called now
X loadBytes does not close input stream
X http://code.google.com/p/processing/issues/detail?id=1542
X add randomGaussian()
X Add TAU as alias for TWO_PI
X http://code.google.com/p/processing/issues/detail?id=1488
_ waiting on reference from Casey
andres
A P3D sketches failing to run