- 1,024
- 1,092
Normally to find distance between 2 objects following method is used:
1. Angsizing both objects
2. Finding positive difference between them
3. Drawing a direct line between them and finding its length while taking closest object as a reference
4. Applying Pythagoras theorem
However this is a little flawed in reasoning and gives slightly lower results than it should. I'll try to provide a better method.
Here are all steps in visual.
Firstly, draw a line between objects on the panel. Line in Picture 2 is if we use closest object(red point) as a reference. If we use far one(blue point) we'll get second line in Picture 3.
Both of them look the same from the POV (like the line we drew at the start) but are different depending on what object you're using for reference.
Let's mark them as a and b accordingly. d1 will be distance to closest object and d2 will be distance to the other one. (look at Picture 4)
To use Pythagoras, we'll need a line perpendicular to a and b (Picture 5). After drawing a perpendicular H line from one side of the a line, it will divide b as (b+a)/2 and (b-a)/2.
As you see from the picture, needed distance x (red line) can be found as:
x = √(H^2 + (b+a)^2/4)
And since
H^2 = (d2-d1)^2 - (b-a)^2/4;
Formula will be:
x = √((d2-d1)^2 - (b-a)^2/4 + (b+a)^2/4)
Which can also be simplified to:
x = √((d2-d1)^2 + a*b)
Note:
I've also seen people visualizing angsize like that rather than like this. If that's the case, it should be done this way and formula will be:
x = √((d2-d1)^2 + (b+a)^2/4)
Agree: @DontTalkDT @Flashlight237
Disagree:
1. Angsizing both objects
2. Finding positive difference between them
3. Drawing a direct line between them and finding its length while taking closest object as a reference
4. Applying Pythagoras theorem
However this is a little flawed in reasoning and gives slightly lower results than it should. I'll try to provide a better method.
Here are all steps in visual.
Firstly, draw a line between objects on the panel. Line in Picture 2 is if we use closest object(red point) as a reference. If we use far one(blue point) we'll get second line in Picture 3.
Both of them look the same from the POV (like the line we drew at the start) but are different depending on what object you're using for reference.
Let's mark them as a and b accordingly. d1 will be distance to closest object and d2 will be distance to the other one. (look at Picture 4)
To use Pythagoras, we'll need a line perpendicular to a and b (Picture 5). After drawing a perpendicular H line from one side of the a line, it will divide b as (b+a)/2 and (b-a)/2.
As you see from the picture, needed distance x (red line) can be found as:
x = √(H^2 + (b+a)^2/4)
And since
H^2 = (d2-d1)^2 - (b-a)^2/4;
Formula will be:
x = √((d2-d1)^2 - (b-a)^2/4 + (b+a)^2/4)
Which can also be simplified to:
x = √((d2-d1)^2 + a*b)
Note:
I've also seen people visualizing angsize like that rather than like this. If that's the case, it should be done this way and formula will be:
x = √((d2-d1)^2 + (b+a)^2/4)
Agree: @DontTalkDT @Flashlight237
Disagree:
Last edited: