@@ -283,10 +283,12 @@ p5.prototype.atan2 = function(y, x) {
283
283
*
284
284
* `cos()` is useful for many geometric tasks in creative coding. The values
285
285
* returned oscillate between -1 and 1 as the input angle increases. `cos()`
286
- * takes into account the current <a href="#/p5/angleMode">angleMode()</a>.
286
+ * calculates the cosine of an angle, using radians by default, or according to
287
+ * if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
287
288
*
288
289
* @method cos
289
- * @param {Number } angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
290
+ * @param {Number } angle the angle, in radians by default, or according to
291
+ * if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
290
292
* @return {Number } cosine of the angle.
291
293
*
292
294
* @example
@@ -363,10 +365,12 @@ p5.prototype.cos = function(angle) {
363
365
*
364
366
* `sin()` is useful for many geometric tasks in creative coding. The values
365
367
* returned oscillate between -1 and 1 as the input angle increases. `sin()`
366
- * takes into account the current <a href="#/p5/angleMode">angleMode()</a>.
368
+ * calculates the sine of an angle, using radians by default, or according to
369
+ * if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
367
370
*
368
371
* @method sin
369
- * @param {Number } angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
372
+ * @param {Number } angle the angle, in radians by default, or according to
373
+ * if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
370
374
* @return {Number } sine of the angle.
371
375
*
372
376
* @example
@@ -443,11 +447,13 @@ p5.prototype.sin = function(angle) {
443
447
*
444
448
* `tan()` is useful for many geometric tasks in creative coding. The values
445
449
* returned range from -Infinity to Infinity and repeat periodically as the
446
- * input angle increases. `tan()` takes into account the current
447
- * <a href="#/p5/angleMode">angleMode()</a>.
450
+ * input angle increases. `tan()` calculates the tan of an angle, using radians
451
+ * by default, or according to
452
+ * if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
448
453
*
449
454
* @method tan
450
- * @param {Number } angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
455
+ * @param {Number } angle the angle, in radians by default, or according to
456
+ * if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
451
457
* @return {Number } tangent of the angle.
452
458
*
453
459
* @example
0 commit comments