Distance calculation
4 posts • Page 1 of 1
Distance calculation
How do i calculate the distance between to objects, and i dont want a negative number, i just want the distance.
-

FuzzyLogicBrain - Posts: 315
- Joined: Mon Jan 31, 2011 7:48 pm
- Location: when online, on the computer. when not, probably on it anyways. ;D lulz
Re: Distance calculation
You can learn to use the world's most famous search engine
Anyway, D = ((x1 - x2)^2 + (y1 - y2)^2)^0.5 or something like that...
The order of the points doesn't matter as long as it is consistent.
Anyway, D = ((x1 - x2)^2 + (y1 - y2)^2)^0.5 or something like that...
The order of the points doesn't matter as long as it is consistent.
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: Distance calculation
but you need the square root, dont you? that is the hypotenuse inst it?
-

FuzzyLogicBrain - Posts: 315
- Joined: Mon Jan 31, 2011 7:48 pm
- Location: when online, on the computer. when not, probably on it anyways. ;D lulz
Re: Distance calculation
A number to the power of one half is the square root of that number.
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests





