|
@@ -900,7 +900,7 @@ export const pow = /*@__PURE__*/ nodeProxyIntent( MathNode, MathNode.POW ).setPa
|
|
|
* @param {Node | number} x - The first parameter.
|
|
* @param {Node | number} x - The first parameter.
|
|
|
* @returns {Node}
|
|
* @returns {Node}
|
|
|
*/
|
|
*/
|
|
|
-export const pow2 = /*@__PURE__*/ nodeProxyIntent( MathNode, MathNode.POW, 2 ).setParameterLength( 1 );
|
|
|
|
|
|
|
+export const pow2 = ( x ) => mul( x, x );
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Returns the cube of the parameter.
|
|
* Returns the cube of the parameter.
|
|
@@ -910,7 +910,7 @@ export const pow2 = /*@__PURE__*/ nodeProxyIntent( MathNode, MathNode.POW, 2 ).s
|
|
|
* @param {Node | number} x - The first parameter.
|
|
* @param {Node | number} x - The first parameter.
|
|
|
* @returns {Node}
|
|
* @returns {Node}
|
|
|
*/
|
|
*/
|
|
|
-export const pow3 = /*@__PURE__*/ nodeProxyIntent( MathNode, MathNode.POW, 3 ).setParameterLength( 1 );
|
|
|
|
|
|
|
+export const pow3 = ( x ) => mul( x, x, x );
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Returns the fourth power of the parameter.
|
|
* Returns the fourth power of the parameter.
|
|
@@ -920,7 +920,7 @@ export const pow3 = /*@__PURE__*/ nodeProxyIntent( MathNode, MathNode.POW, 3 ).s
|
|
|
* @param {Node | number} x - The first parameter.
|
|
* @param {Node | number} x - The first parameter.
|
|
|
* @returns {Node}
|
|
* @returns {Node}
|
|
|
*/
|
|
*/
|
|
|
-export const pow4 = /*@__PURE__*/ nodeProxyIntent( MathNode, MathNode.POW, 4 ).setParameterLength( 1 );
|
|
|
|
|
|
|
+export const pow4 = ( x ) => mul( x, x, x, x );
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Transforms the direction of a vector by a matrix and then normalizes the result.
|
|
* Transforms the direction of a vector by a matrix and then normalizes the result.
|