tested and merged point2line metric