fixed sqrt problem in vgl_lineseg_test