Author Topic: Race distance!  (Read 1210 times)

0 Members and 1 Guest are viewing this topic.

Offline MadMax

  • Lazyass, still hanging around AX from time to time
  • Admin
  • Posts: 4,355
  • I'm the road warrior...
    • View Profile
  • In-game name: MadMax[MAF]
Race distance!
« 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


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

PLEASE, IGNORE ALL MY SPELLING MISTAKES AND OTHER TYPOS True racing fans enjoy horsepower in ANY form

Offline [MAF]mooman

  • Leader
  • Posts: 6,286
    • View Profile
Re: Race distance!
« Reply #1 on: April 26, 2011, 03:25:56 pm »
(xdist2 + ydist2 + zdist2)1/2 works too btw
will read and answer your forum PMs when I'm less busy!

Offline [MAF]Snoopy

  • Posts: 14,462
    • View Profile
Re: Race distance!
« Reply #2 on: April 26, 2011, 05:17:27 pm »
darek is pretty clever tbh

Offline Krissi

Re: Race distance!
« Reply #3 on: April 26, 2011, 05:33:10 pm »
I5 4670k @ 3,4| GA-Z87X-D3H| 8Gb DDR3 | Asus Gtx 770 |1TB HDD |64 GB Crucial M4| CM 720W| CM 690

Offline [FSR]Ush

  • Admin
  • Posts: 13,449
  • Aart
    • View Profile
Re: Race distance!
« Reply #4 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.

Offline [MAF]mooman

  • Leader
  • Posts: 6,286
    • View Profile
Re: Race distance!
« Reply #5 on: April 26, 2011, 11:01:10 pm »
it's fixed now. doubleyou is 0.4 miles and max says that's accurate
will read and answer your forum PMs when I'm less busy!

Offline [MAF]Snoopy

  • Posts: 14,462
    • View Profile
Re: Race distance!
« Reply #6 on: April 26, 2011, 11:01:35 pm »
woo

Offline [FSR]Ush

  • Admin
  • Posts: 13,449
  • Aart
    • View Profile
Re: Race distance!
« Reply #7 on: April 26, 2011, 11:20:32 pm »
lettuce

Offline [MAF]Cthulhu

  • Admin
  • Posts: 6,325
  • Trance, Progressive, Techno <3
    • View Profile
  • In-game name: [MAF]Phobos
Re: Race distance!
« Reply #8 on: April 27, 2011, 06:41:22 pm »

Offline [MAF]Snoopy

  • Posts: 14,462
    • View Profile
Re: Race distance!
« Reply #9 on: April 27, 2011, 07:16:55 pm »
hah!

Offline Scorpion.

Re: Race distance!
« Reply #10 on: April 28, 2011, 08:13:20 pm »

Offline [MAF]Rac3r

  • Leader
  • Posts: 2,801
  • Well, this is embarrassing.
    • View Profile
Re: Race distance!
« Reply #11 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.