add equidistantline.cpp and modify some geometry code