Try my new website:
www.urcho.com
- the new SIMPLE social network
Sign up
|
357
members |
125
snippets
Search for:
ALL
POPULAR
File Controls
Multiplayer Code
2D Effects
3D Effects
Oldskool demos
Basic Functions
Maths/Physics
Sound
Tutorials
Misc
Username:
Password:
Sign up
Distance formula
[
back
]
Author:
frostbyte
| Viewed:
1403
times | Language:
BlitzMax
| Category:
Basic Functions
' the distance formula Function GetDistance:Float(x1:Float,y1:Float,x2:Float,y2:Float) Return(Sqr((x2# - x1#)^2 - (y2# - y1#)^2)) ' returns the decimal distance value End Function
Author Comments:
Login or
create an account
to comment on this snippet