Function scale

  • Scales a vec2 by a scalar number

    Parameters

    • out: Vec2

      the receiving vector

    • a: Vec2

      the vector to scale

    • b: number

      amount to scale the vector by

    Returns Vec2

    out