Merge pull request #1638 from ybakos/TAU_doc

Adding javadoc for TAU. See processing/processing-web#9
This commit is contained in:
Casey Reas
2013-02-19 14:14:07 -08:00

View File

@@ -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 <b>sin()</b> and <b>cos()</b>.
*
* ( 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;