Jump to content
Sign in to follow this  
EFF

Mouse speed meter

Recommended Posts

EFF

I had nothing to do, so I made sth like this :P

Done in 2 hours. I`m not sure about the way the speed is counted but I think it`s correct :lmao:

Say what you think about it :(

speedMeter.au3

Share this post


Link to post
Share on other sites
seandisanti

I had nothing to do, so I made sth like this :P

Done in 2 hours. I`m not sure about the way the speed is counted but I think it`s correct :lmao:

Say what you think about it :(

haha, i like it. but it doesn't figure speed right for diagonals. one sec, i'm gonna test a re-write just 'cause i think this is neat....

Share this post


Link to post
Share on other sites
seandisanti

haha, i like it. but it doesn't figure speed right for diagonals. one sec, i'm gonna test a re-write just 'cause i think this is neat....

i think your formulas are off... maybe...

if i remember right, the length of a line can be determined with...

sqrt((y2-y1)(y2-y1)+(x2-x1)(x2-x1))

and that's just based off of a squared + b squared = c squared...

so you're figuring the squared lenths of the base and height of the triangle with the (y2-y1)(y2-y1)+(x2-x1)(x2-x1) then just take the squareroot of that number for the length of the hypotenuse (spelling?)

Edited by cameronsdad

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×