a little change to triangle2d to support a line and a point