Function addMul

  • a = a + b * s

    Adds the 2-element vector b multiplied by the scalar s to the 2-element vector a and stores the result in a

    Parameters

    • a: Vec2

      a 2-element vector object

    • b: Vec2

      a 2-element vector object

    • s: number

      a scalar value

    Returns Vec2

    a as the result of a + b * s

Generated using TypeDoc