simplify PointTool.isOnLine