Welcome to the NavList Message Boards.

NavList:

A Community Devoted to the Preservation and Practice of Celestial Navigation and Other Methods of Traditional Wayfinding

Compose Your Message

Message:αβγ
Message:abc
Add Images & Files
    Name or NavList Code:
    Email:
       
    Reply
    Re: distance with atan2
    From: Charles Seitz
    Date: 2005 Nov 12, 14:37 -0500

    If for whatever reason you cannot use Atan2,  this equation will
    compute the great circle distance between two places on a spherical
    earth. Everything is expressed in radians.
    
    These are Borland Delphi (Pascal) functions and the extended data
    type has precision much greater than rquired for practical usage.
    
    ////////////// Great circle navigation /////////////////////
    
    function GcDis(const Lat1, Lon1, Lat2, Lon2: Extended): Extended;
    
    begin
    
         Result := 2*ArcSin(Sqrt(Sqr(Sin((Lat1-Lat2)/2)) +
    
          Cos(Lat1)*Cos(Lat2)*Sqr(Sin((Lon1-Lon2)/2))));
    
    end;
    
    function DegToRad(const Degrees: Extended): Extended;
    
    begin   Result := Degrees*(pi/180)   end;
    
    
    function RadToNm(const Radians: Extended): Extended;
    
    begin   Result := (60*180/pi)*Radians   end;
    
    
    
    ---  CHAS
    
    
    

       
    Reply
    Browse Files

    Drop Files

    NavList

    What is NavList?

    Get a NavList ID Code

    Name:
    (please, no nicknames or handles)
    Email:
    Do you want to receive all group messages by email?
    Yes No

    A NavList ID Code guarantees your identity in NavList posts and allows faster posting of messages.

    Retrieve a NavList ID Code

    Enter the email address associated with your NavList messages. Your NavList code will be emailed to you immediately.
    Email:

    Email Settings

    NavList ID Code:

    Custom Index

    Subject:
    Author:
    Start date: (yyyymm dd)
    End date: (yyyymm dd)

    Visit this site
    Visit this site
    Visit this site
    Visit this site
    Visit this site
    Visit this site