PDA

View Full Version : How could I make a Counter for KM?


Nock44
1st April 2008, 18:03
I tried various ideas but they didnt work, Sean told be to use Pythagoras but i didn't quite understand how that would work, i hope you can come up with an idea!

ReVoX
1st April 2008, 19:58
Pythagoras? lol, this is for geometry

mcgas001
1st April 2008, 20:09
Excuse me, You use Pythagoras theorem (http://en.wikipedia.org/wiki/Pythagorean_theorem) to get the best results. You calcuate there currect X,Y against there last X,Y and then sqrt it. What i also told Nock44 on msn, Although he didnt seem to listen.

DarkTimes
1st April 2008, 20:36
Yes, Sean is right. I actually explained how to do this and posted C# code for it in the other thread on this subject.

http://www.lfsforum.net/showthread.php?p=742170#post742170

mcgas001
1st April 2008, 20:46
You edited it to get my name right but it was right the first time ;)