add methods for Vector2D.as