// NewVertex creates a new vertex with the given coordinates and stores it in the structure.
NewVertex creates a new vertex with the given coordinates and stores it in the structure.
// NewVertex creates a new vertex with the given coordinates and stores it in the structure .
func (d *DCEL) NewVertex(x, y int) *Vertex {
	vertex := &Vertex{
		X: x,
		Y: y,
	}
	d.Vertices = append(d.Vertices, vertex)
	return vertex
}
func ( d * DCEL ) NewVertex ( x , y int ) * Vertex { vertex := & Vertex { X : x , Y : y , } d . Vertices = append ( d . Vertices , vertex ) return vertex }
NewVertex creates a new vertex with the given coordinates and stores it in the structure.
NewVertex creates a new vertex with the given coordinates and stores it in the structure .