• Multiplies each element of a two-element vector by a scalar.

    Parameters

    • v: Vec2

      The two-element vector

    • s: number

      The scalar value to multiply

    • Optionaldest: Vec2

      The destination vector, optional

    Returns Vec2

    The resulting vector after multiplication