The distance between q1 and point A can be calculated using the distance formula:
d1 = sqrt((x2 - x1)^2 + (y2 - y1)^2)
where (x1, y1) is the position of q1 and (x2, y2) is the position of point A.
In this case, (x1, y1) = (0, 0) and (x2, y2) = (4/5d, 2/3d).
So, d1
Show more…