AdrenalineX Forums

General => AdrenalineX Development => Suggestions => Topic started by: MadMax on April 26, 2011, 02:45:29 pm

Title: Race distance!
Post by: MadMax on April 26, 2011, 02:45:29 pm
Many races have wrong distance, for example DoubleYou shows over 2 miles, while it have like 700 meters.
This way can help calculate distance a bit more accurate.

Red dots = checkpoints
Red lines = track
Yellow lines = distance between checkpoints
Green lines = X and Y distance between checkpoints
(http://img535.imageshack.us/img535/6848/milestest.png)

Quote from: Example_Race
MadMax
No Extra Information
475 565
0 0
15 300 12 11 1 0 14 0 0 0 0
0 0 2
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
998.781677 2542.633300 10.416600 55.077098
1008.788024 2557.533203 10.429699 54.668498
841.711914 2630.111572 11.824199
535.701782 2657.115234 47.222698
417.870513 2692.186767 60.096099
230.388107 2749.940673 59.647598
-63.614200 2636.860595 63.580600
-170.334197 2636.117187 63.266998
-407.809906 2714.776855 62.131000
-962.901611 2715.850341 45.671798
-1207.825805 2687.505126 45.732498
-1343.134643 2636.756347 50.563201
How?
Checking distance between 2nd grid and 1st cp

1008.788024 2557.533203 10.429699 54.668498
841.711914 2630.111572 11.824199
X distance: (1008.788024)-(841.711914)=(167.07611)
Y distance: (2557.533203)-(2630.111572)=(72.578369)
Z distance: (10.429699)-(11.824199)=(1.4115)
horizontal distance:
X distance2+Y distance2=horizontal distance2
167.076112+72.5783692=
27914.4265327321+5267.619646700161=33182.046179010161
sqrt 33182.046179010161=182.15939772356012321577005465159

so horizontal distance = 182.15939772356012321577005465159 meters

now total distance:
horizontal distance2+Z distance2=total distance2
182.159397723560123215770054651592+1.41152=
33182,046179010161+1.99233225=33184.038511260161
sqrt 33184.038511260161=182.1648662922138808989957690671

so total distance between 2nd grid and 1st checkpoint = 182.1648662922138808989957690671

now do same to check total distance between 1st checkpoint and 2nd checkpoint
then same for total distance between 2nd checkpoint and 3rd checkpoint
then same for all other checkpoints

later sum up all total distances:
total distance between 2nd grid and 1st checkpoint (for example, as we counted 182.1648662922138808989957690671)
+total distance between 1st checkpoint and 2nd checkopint (for example let's say 230)
+total distance between 2nd checkpoint and 3rd checkpoint (for example let's say 138)
+same for rst checkpoints (for example let's say 2375)

then:
sum of all distances/1.609344=race distance in miles

182.1648662922138808989957690671+230+138+2375=2925.1648662922138808989957690671

2925.1648662922138808989957690671/1.609344=~1.8 mile

so total race distance is around 1.8 mile

I think I explained it enough, and hope You understand what I mean.
In short:
X distance2+Y distance2=horizontal distance2
horizontal distance2+Z distance2=total distance2
then same for all checkpoints
sum up all distances
sum of all distances/1.609344=race distance in miles
Title: Re: Race distance!
Post by: [MAF]mooman on April 26, 2011, 03:25:56 pm
(xdist2 + ydist2 + zdist2)1/2 works too btw
Title: Re: Race distance!
Post by: [MAF]Snoopy on April 26, 2011, 05:17:27 pm
darek is pretty clever tbh
Title: Re: Race distance!
Post by: Krissi on April 26, 2011, 05:33:10 pm
darek is pretty clever tbh
Title: Re: Race distance!
Post by: [FSR]Ush on April 26, 2011, 10:59:31 pm
I thought Doubleyou had the right distance before.. but then it became 2.. it said 0.7 before I think.
Title: Re: Race distance!
Post by: [MAF]mooman on April 26, 2011, 11:01:10 pm
it's fixed now. doubleyou is 0.4 miles and max says that's accurate
Title: Re: Race distance!
Post by: [MAF]Snoopy on April 26, 2011, 11:01:35 pm
woo
Title: Re: Race distance!
Post by: [FSR]Ush on April 26, 2011, 11:20:32 pm
lettuce
Title: Re: Race distance!
Post by: [MAF]Cthulhu on April 27, 2011, 06:41:22 pm
(http://tundratabloids.com/wp-content/uploads/2011/01/lettuce-allah.jpg)
Title: Re: Race distance!
Post by: [MAF]Snoopy on April 27, 2011, 07:16:55 pm
hah!
Title: Re: Race distance!
Post by: Scorpion. on April 28, 2011, 08:13:20 pm
(http://images.mylot.com/userImages/images/postphotos/2283831.jpg)
Title: Re: Race distance!
Post by: [MAF]Rac3r on May 03, 2011, 09:13:12 am
Nice post, we are confident enough now with DoubleYou being 0.4 Miles.

Good work Max and mooman, seems a lot more accurate now.