title: Multiplying a Vector2 by a Scalar (LibGDX)
body: <p>I am attempting to multiply the type "Vector2" by a scalar of value delta and type float.  Information on the type Vector2 can be found here:</p>
  
  <p><a href="http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/class-use/Vector2.html" rel="noreferrer">http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/class-use/Vector2.html</a></p>
  
  <p>Specifically on that page, I am referencing:</p>
  
  <p>Vector2 --- Vector2.scl(float scalar)
  Multiplies this vector by a scalar</p>
  
  <p>position is a Vector2
  velocity is a Vector2</p>
  
  <p>I am being given the error: "The method scl(float) is undefined for the type Vector2"</p>
  
  <pre><code>public void update(float delta) {
      position.add(velocity.cpy()).scl(delta); 
  }
  </code></pre>