• An expression that calculates the dot product of the given expressions. The type of the result of the two given expressions should be the same. You can take the dot product of numbers, points or colors. Points and colors are interpreted as vectors for this operation.

    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 calculates the dot product of the given expressions. Results in a number.