Просмотр исходного кода

TSL: display atan second argument (#30287)

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Samuel Rigaud 1 год назад
Родитель
Сommit
8f31ce2eaf
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/nodes/math/MathNode.js

+ 3 - 1
src/nodes/math/MathNode.js

@@ -543,9 +543,11 @@ export const acos = /*@__PURE__*/ nodeProxy( MathNode, MathNode.ACOS );
 
 /**
  * Returns the arc-tangent of the parameter.
+ * If two parameters are provided, the result is `atan2(y/x)`.
  *
  * @function
- * @param {Node | Number} x - The parameter.
+ * @param {Node | Number} y - The y parameter.
+ * @param {(Node | Number)?} x - The x parameter.
  * @returns {Node}
  */
 export const atan = /*@__PURE__*/ nodeProxy( MathNode, MathNode.ATAN );

粤ICP备19079148号