def findLinearY(x1,y1,x2,y2,xValue): #using the linear form of y = mx + b, solve for y... slope = (y1 - y2) / float(x1 - x2) b = y1 - (slope * x1) return slope * float(xValue) + b #return a floating point mx + b!
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.