I have a simple curve with only two point. I wonder if there is a way to identify the line? I need to identify when I click on the line, when a polygon touches the line and drag the line to anywhere in the graph.

(Pt BR)Possuo uma curva simples com apenas dois ponto. Gostaria de saber se existe uma maneira de identificar a reta? Preciso identificar quando clico na reta, quando algum poligono encosta na reta e arrastar essa reta para qualquer lugar do gráfico.