@sstorsveen/maths - v2.0.1
    Preparing search index...

    Function mulInto

    • b = a * s

      Multiplies the two-element vector a by the scalar s and stores the result in b

      Parameters

      • a: Vec2

        a 2-element vector object

      • s: number

        a scalar value

      • b: Vec2

        a 2-element vector in which to store the result

      Returns Vec2

      b as the result of a * s