Function scaleVec2

  • Scale a vector

    Parameters

    • v: Vector2

      The vector to scale

    • n: number

      The amount to scale the vector by

    Returns Vector2

    The newly created vector