Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update phrasing in dev2 branch for trigonometric f functions #7666

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions src/math/trigonometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,11 @@ function trigonometry(p5, fn){
*
* `cos()` is useful for many geometric tasks in creative coding. The values
* returned oscillate between -1 and 1 as the input angle increases. `cos()`
* takes into account the current <a href="#/p5/angleMode">angleMode()</a>.
* calculates the cosine of an angle, using radians by default, or according
* to if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
*
* @method cos
* @param {Number} angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
* @param {Number} angle the angle, in radians by default, or according to if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
* @return {Number} cosine of the angle.
*
* @example
Expand Down Expand Up @@ -366,10 +367,11 @@ function trigonometry(p5, fn){
*
* `sin()` is useful for many geometric tasks in creative coding. The values
* returned oscillate between -1 and 1 as the input angle increases. `sin()`
* takes into account the current <a href="#/p5/angleMode">angleMode()</a>.
* calculates the sine of an angle, using radians by default, or according to
* if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
*
* @method sin
* @param {Number} angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
* @param {Number} angle the angle, in radians by default, or according to if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
* @return {Number} sine of the angle.
*
* @example
Expand Down Expand Up @@ -446,11 +448,12 @@ function trigonometry(p5, fn){
*
* `tan()` is useful for many geometric tasks in creative coding. The values
* returned range from -Infinity to Infinity and repeat periodically as the
* input angle increases. `tan()` takes into account the current
* <a href="#/p5/angleMode">angleMode()</a>.
* input angle increases. `tan()` calculates the tan of an angle, using radians
* by default, or according to
* if <a href="#/p5/angleMode">angleMode()</a> setting (RADIANS or DEGREES).
*
* @method tan
* @param {Number} angle the angle in radians unless specified by <a href="/reference/p5/angleMode/">angleMode()</a>.
* @param {Number} angle the angle, in radians by default, or according to if <a href="/reference/p5/angleMode/">angleMode()</a> setting (RADIANS or DEGREES).
* @return {Number} tangent of the angle.
*
* @example
Expand Down