Vector2D method to calculate length + set function