calc_y_for_x
Description:
Compute a corresponding y coordinate for a given x input coordinate, returns 0 if computed correctly and -1 if the path doesn't exist for the specified x coordinate.
Parameters:
this |
a Path |
x |
x coordinate to compute for |
y |
return location for y coordinate |