Function addMulInto

  • c = 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 c

    Parameters

    • a: Vec2

      a 2-element vector object

    • b: Vec2

      a 2-element vector object

    • s: number

      a scalar value

    • c: Vec2

      a 2-element vector in which to store the result

    Returns Vec2

    c as the result of a + b * s

Generated using TypeDoc