This was inspired by an answer on stackoverflow https://stackoverflow.com/a/717791

get_vertex(x, y)