Function addScaled

  • Adds two vectors, scaling the 2nd; assumes a and b have the same dimension.

    Parameters

    • a: Vec4

      Operand vector.

    • b: Vec4

      Operand vector.

    • scale: number

      Amount to scale b

    • Optional dst: Vec4

      vector to hold result. If not passed in a new one is created.

    Returns Vec4

    A vector that is the sum of a + b * scale.