Results 1 to 30 of 30

Thread: Calculate Endpoint from X,Y,Dist,Heading [Solved]

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    19

    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
  •  



Click Here to Expand Forum to Full Width