Implement some parts of Vector2.