An t-astar eadar an points air-loidhne casan


Air casan a thèid do chuideachadh a bhith a ' lorg an t-astar eadar points.
An t-astar eadar 2 points (A) agus (B) calculated an diabhal L = square root ((x2−x1)2+(y2−y1)2).

Point ( A): Point ( B):
(xA, yA) (xB, yB)

Mar thoradh air: