an example demonstrating Vec2D to_vertex