Skip to content

Commit 6ea957c

Browse files
authored
Merge pull request #7475 from thrly/thrly-p5js-trig-angle-params
Add angle param clarification to sin(), cos(), and tan()
2 parents 91d2a71 + c1f4d84 commit 6ea957c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/math/trigonometry.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ p5.prototype.atan2 = function(y, x) {
286286
* takes into account the current <a href="#/p5/angleMode">angleMode()</a>.
287287
*
288288
* @method cos
289-
* @param {Number} angle the angle.
289+
* @param {Number} angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
290290
* @return {Number} cosine of the angle.
291291
*
292292
* @example
@@ -366,7 +366,7 @@ p5.prototype.cos = function(angle) {
366366
* takes into account the current <a href="#/p5/angleMode">angleMode()</a>.
367367
*
368368
* @method sin
369-
* @param {Number} angle the angle.
369+
* @param {Number} angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
370370
* @return {Number} sine of the angle.
371371
*
372372
* @example
@@ -447,7 +447,7 @@ p5.prototype.sin = function(angle) {
447447
* <a href="#/p5/angleMode">angleMode()</a>.
448448
*
449449
* @method tan
450-
* @param {Number} angle the angle.
450+
* @param {Number} angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
451451
* @return {Number} tangent of the angle.
452452
*
453453
* @example

0 commit comments

Comments
 (0)