Remote Sensing, Geomatics.
m1 long1 = m2 x — m2 long2 + lat2 — lat1 -> (m1-m2)x = m2 long2 — m1 long1 + lat 2 — lat 1 For x = (m2 long 2 — m1 long 1 + lat2 — lat1)/ (m1-m2) For y = m1(x — long1)+lat1 Vector based method Direction vector for the line 1 = v1 = cos(azimuth1),sin(azimuth1) Direction vector for the line 2 = v2 =