|
-
Jul 28th, 2008, 11:33 AM
#1
Thread Starter
PowerPoster
[RESOLVED] The length of a line
I am sure there's a simple way to do this, but I want to calculate exactly how long a line is based on the x/y co-ordinates of both points. For instance, if a line was from 1,1 to 1,10 it would obviously be 10, but I need to know how to calculate it if it was 1,1 to 3,10 or 1,1 to 7,9.
I'll be working with larger numbers than this, probably in their thousands...it'll calculate the distance between two points on a VB form...but that shouldn't make much difference :-)
Has anyone got a function for returning the result distance between two x,y co-ordinates?
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|