math docs
    Preparing search index...

    Function scaleAndAdd

    • Adds two vec4's after scaling the second operand by a scalar value

      Parameters

      • out: vec4.Vec4

        the receiving vector

      • a: readonly [number, number, number, number]

        the first operand

      • b: readonly [number, number, number, number]

        the second operand

      • scale: number

        the amount to scale b by before adding

      Returns vec4.Vec4

      out