• An expression that returns the result of the first expression raised to the power of the result of the second expression. The type of the operands should be the same. The (elements of the) first argument must not be less than 0 and if it is 0, the (corresponding elements of the) second argument must be greater than 0.

    Type Parameters

    • T extends string | number | Vector3

    Parameters

    • first: Expression<T>

      The first expression to evaluate. Should result in a number, point or color.

    • second: Expression<T>

      The second expression to evaluate. Should result in the same type as first.

    Returns Expression<T>

    An expression that returns the result of the first expression to the power of the result of the second expression. Results in a number, point or color depending on the type of the operands.