vector2d constructor