Skip to content

Commit 9f7bd6a

Browse files
author
Yong Bakos
committed
Adding javadoc for TAU. See processing/processing-web-archive#9
1 parent 8f6ca89 commit 9f7bd6a

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

core/src/processing/core/PConstants.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ public interface PConstants {
108108
*
109109
* ( end auto-generated )
110110
* @webref constants
111-
* @see PConstants#HALF_PI
112111
* @see PConstants#TWO_PI
112+
* @see PConstants#TAU
113+
* @see PConstants#HALF_PI
113114
* @see PConstants#QUARTER_PI
114115
*
115116
*/
@@ -126,6 +127,7 @@ public interface PConstants {
126127
* @webref constants
127128
* @see PConstants#PI
128129
* @see PConstants#TWO_PI
130+
* @see PConstants#TAU
129131
* @see PConstants#QUARTER_PI
130132
*/
131133
static final float HALF_PI = (float) (Math.PI / 2.0);
@@ -142,6 +144,7 @@ public interface PConstants {
142144
* @webref constants
143145
* @see PConstants#PI
144146
* @see PConstants#TWO_PI
147+
* @see PConstants#TAU
145148
* @see PConstants#HALF_PI
146149
*/
147150
static final float QUARTER_PI = (float) (Math.PI / 4.0);
@@ -156,11 +159,26 @@ public interface PConstants {
156159
* ( end auto-generated )
157160
* @webref constants
158161
* @see PConstants#PI
162+
* @see PConstants#TAU
159163
* @see PConstants#HALF_PI
160164
* @see PConstants#QUARTER_PI
161165
*/
162166
static final float TWO_PI = (float) (2.0 * Math.PI);
163-
167+
/**
168+
* ( begin auto-generated from TAU.xml )
169+
*
170+
* TAU is an alias for TWO_PI, a mathematical constant with the value
171+
* 6.28318530717958647693. It is twice the ratio of the circumference
172+
* of a circle to its diameter. It is useful in combination with the
173+
* trigonometric functions <b>sin()</b> and <b>cos()</b>.
174+
*
175+
* ( end auto-generated )
176+
* @webref constants
177+
* @see PConstants#PI
178+
* @see PConstants#TWO_PI
179+
* @see PConstants#HALF_PI
180+
* @see PConstants#QUARTER_PI
181+
*/
164182
static final float TAU = (float) (2.0 * Math.PI);
165183

166184
static final float DEG_TO_RAD = PI/180.0f;

0 commit comments

Comments
 (0)