Skip to content

Commit 2569639

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/trigonometry.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ function trigonometry(p5, fn){
287287
* `cos()` is useful for many geometric tasks in creative coding. The values
288288
* returned oscillate between -1 and 1 as the input angle increases. `cos()`
289289
* 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+
* to if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
291291
*
292292
* @method cos
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+
* @param {Number} angle the angle, in radians by default, or according to if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
294294
* @return {Number} cosine of the angle.
295295
*
296296
* @example

0 commit comments

Comments
 (0)