From 15afab88f307e49351f9040a4ff44eab9916229e Mon Sep 17 00:00:00 2001 From: thrly Date: Sat, 18 Jan 2025 11:30:58 +0000 Subject: [PATCH] Add angle param clarification to sin(), cos(), and tan() --- src/math/trigonometry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/math/trigonometry.js b/src/math/trigonometry.js index 51f42d71a9..076e5a6f4a 100644 --- a/src/math/trigonometry.js +++ b/src/math/trigonometry.js @@ -286,7 +286,7 @@ p5.prototype.atan2 = function(y, x) { * takes into account the current angleMode(). * * @method cos - * @param {Number} angle the angle. + * @param {Number} angle the angle in radians unless specified by angleMode(). * @return {Number} cosine of the angle. * * @example @@ -366,7 +366,7 @@ p5.prototype.cos = function(angle) { * takes into account the current angleMode(). * * @method sin - * @param {Number} angle the angle. + * @param {Number} angle the angle in radians unless specified by angleMode(). * @return {Number} sine of the angle. * * @example @@ -447,7 +447,7 @@ p5.prototype.sin = function(angle) { * angleMode(). * * @method tan - * @param {Number} angle the angle. + * @param {Number} angle the angle in radians unless specified by angleMode(). * @return {Number} tangent of the angle. * * @example