code: public void projectOntoUnit(Vector2f b, Vector2f result) {
  		float dp = b.dot(this);
  		
  		result.x = dp * b.getX();
  		result.y = dp * b.getY();
  		
  	}
docs: Project this vector onto another
  
  @param b The vector to project onto
  @param result The projected vector