Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spheroidal long-lat distance calculation
Message
De
15/02/2007 18:15:00
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
15/02/2007 18:10:08
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01196313
Message ID:
01196338
Vues:
15
>>Dragan!
>>
>>>>Can anyone show me what I'm missing?
>>>>
>>>
>>>I think in the denominator you've prematurely closed the parenthesis after SIN(m.rlat2). The denominator line should be
>>>
>>>
(SIN(m.rlat1) * SIN(m.rlat2) + COS(m.rlat1) * COS(m.rlat2) * COS(m.rDeltaLong))
>>
>>That was it!
>
>Glad to see that my math is not so rusty, after all these years of just programming :).

It's the over-analyzing that tripped me up. I was incorrectly trying to control the order of operations. :(
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform