Added Vector2D changed input of some functions to float. see comments for more details.