Search code examples
geometrycoordinate-systems

Coordinates of a point between two other points and know the distance from starting point and target point


How can i Find the Coorfinate of H.If There are three point that are collinear A,H,C . If it is known the two points that are at both ends like A(1.3,2.6) , C(8.1,13.7) and the distance of AH is 3.170958 . So how can I find the coordinates of H ? Here A is the starting point and C is the end point.


Solution

  • Find length of AC and apply formula to x and y coordinates

      H = A + (C-A)* Len(AH) / Len(AC)
    

    It is linear interpolation. Geometrically - law of similar triangles. Hypotenuses ratio (length) is equal to cathetus ratio (coordinate)