You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/math/trigonometry.js
+10-7
Original file line number
Diff line number
Diff line change
@@ -286,10 +286,11 @@ function trigonometry(p5, fn){
286
286
*
287
287
* `cos()` is useful for many geometric tasks in creative coding. The values
288
288
* returned oscillate between -1 and 1 as the input angle increases. `cos()`
289
-
* takes into account the current <a href="#/p5/angleMode">angleMode()</a>.
289
+
* calculates the cosine of an angle, using radians by default, or according
290
+
* to if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
290
291
*
291
292
* @method cos
292
-
* @param {Number} angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
293
+
* @param {Number} angle the angle, in radians by default, or according to if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
293
294
* @return {Number} cosine of the angle.
294
295
*
295
296
* @example
@@ -366,10 +367,11 @@ function trigonometry(p5, fn){
366
367
*
367
368
* `sin()` is useful for many geometric tasks in creative coding. The values
368
369
* returned oscillate between -1 and 1 as the input angle increases. `sin()`
369
-
* takes into account the current <a href="#/p5/angleMode">angleMode()</a>.
370
+
* calculates the sine of an angle, using radians by default, or according to
371
+
* if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
370
372
*
371
373
* @method sin
372
-
* @param {Number} angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
374
+
* @param {Number} angle the angle, in radians by default, or according to if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
373
375
* @return {Number} sine of the angle.
374
376
*
375
377
* @example
@@ -446,11 +448,12 @@ function trigonometry(p5, fn){
446
448
*
447
449
* `tan()` is useful for many geometric tasks in creative coding. The values
448
450
* returned range from -Infinity to Infinity and repeat periodically as the
449
-
* input angle increases. `tan()` takes into account the current
450
-
* <a href="#/p5/angleMode">angleMode()</a>.
451
+
* input angle increases. `tan()` calculates the tan of an angle, using radians
452
+
* by default, or according to
453
+
* if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
451
454
*
452
455
* @method tan
453
-
* @param {Number} angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
456
+
* @param {Number} angle the angle, in radians by default, or according to if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
0 commit comments