Skip to content

Commit ce9569a

Browse files
committed
Fix: Update sin(), cos(), and tan() docs to respect angleMode.
1 parent eac7362 commit ce9569a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/trigonometry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,10 @@ function trigonometry(p5, fn){
450450
* returned range from -Infinity to Infinity and repeat periodically as the
451451
* input angle increases. `tan()` calculates the tan of an angle, using radians
452452
* by default, or according to
453-
* if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
453+
* if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
454454
*
455455
* @method tan
456-
* @param {Number} angle the angle, in radians by default, or according to if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
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).
457457
* @return {Number} tangent of the angle.
458458
*
459459
* @example

0 commit comments

Comments
 (0)