Functions

Is it possible to compare two functions in AS3 ? for eg : one function draws a line, the other function also draws a line. I want to compare whether the lines are in the same x and y ??