diff --git a/core/src/processing/core/PConstants.java b/core/src/processing/core/PConstants.java index 021a79455..f4030bb7e 100644 --- a/core/src/processing/core/PConstants.java +++ b/core/src/processing/core/PConstants.java @@ -108,8 +108,9 @@ public interface PConstants { * * ( end auto-generated ) * @webref constants - * @see PConstants#HALF_PI * @see PConstants#TWO_PI + * @see PConstants#TAU + * @see PConstants#HALF_PI * @see PConstants#QUARTER_PI * */ @@ -126,6 +127,7 @@ public interface PConstants { * @webref constants * @see PConstants#PI * @see PConstants#TWO_PI + * @see PConstants#TAU * @see PConstants#QUARTER_PI */ static final float HALF_PI = (float) (Math.PI / 2.0); @@ -142,6 +144,7 @@ public interface PConstants { * @webref constants * @see PConstants#PI * @see PConstants#TWO_PI + * @see PConstants#TAU * @see PConstants#HALF_PI */ static final float QUARTER_PI = (float) (Math.PI / 4.0); @@ -156,11 +159,26 @@ public interface PConstants { * ( end auto-generated ) * @webref constants * @see PConstants#PI + * @see PConstants#TAU * @see PConstants#HALF_PI * @see PConstants#QUARTER_PI */ static final float TWO_PI = (float) (2.0 * Math.PI); - + /** + * ( begin auto-generated from TAU.xml ) + * + * TAU is an alias for TWO_PI, a mathematical constant with the value + * 6.28318530717958647693. It is twice the ratio of the circumference + * of a circle to its diameter. It is useful in combination with the + * trigonometric functions sin() and cos(). + * + * ( end auto-generated ) + * @webref constants + * @see PConstants#PI + * @see PConstants#TWO_PI + * @see PConstants#HALF_PI + * @see PConstants#QUARTER_PI + */ static final float TAU = (float) (2.0 * Math.PI); static final float DEG_TO_RAD = PI/180.0f;