|
-
Apr 23rd, 2005, 11:17 AM
#1
Thread Starter
Junior Member
Calculate Endpoint from X,Y,Dist,Heading [Solved]
Hey folks,
I didn't find any other threads regarding this question, sorry if I missed one.
I'm having a major brain fart here. I can calculate distance and heading between points but I can't seem to come up with a function for this:
_________ +X
|
|
|
|
+Y
I have a square, flat grid up to 2000 by 2000 pixels.
Given the start X & Y, distance, and heading in degrees, how do I determine the end point X & Y location?
I'm trying to make a simple function such as this:
Public Function EndPoint(Map1.Width as integer, Map1.Height as integer, startX as integer, startY as integer ,Dist as integer, Hdg as integer) as string
??????
EndPoint = EndX & "|" & EndY
End function
I must be up too many hours or out of school to long.
TIA.
Last edited by stmdk; Apr 23rd, 2005 at 09:13 PM.
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
|