Lets say I have 6 point name A, B, C, D, E, F.
Distance between a point and it's nearest 3-4 points are known i.e the displacement.
Now I want to assign
y coordinates to them assuming one point as
The origin point can be taken as input from the user. But nothing more than that.
Sample input :
Distance between A & B = Given
Distance between A & F = Given
Distance between A & c = Given
So on, distance between all the points are given.
Required output :
The question is not specific to 6 points. The number of points can be dynamic. Maybe 30, maybe 40.
Consider this image.
Distance between Pooint (A, B) , (A, C), (A,L) is known i.e the LOS distance between points. But same can't be said for Point (A, D), as the LOS distance between A and D is unknown. But Distance between (L, D), (C, D), (K,D) is known.