Jon S Berndt writes:

>. We can get complicated at 
>some point in the future. Right now all we want is to be 
>able to determine the elevation at a given lat/lon.

Jon

I URGE you and everyone else to think in terms of 'direction cosine'
XYZ's instead of lat/lons and where possible to use the preexisting 
matrices to convert between your local xyz space and the global
FGFS xyz space.  Usually this will consist of nothing more then a 
translation and a rotation.  Otherwise you end up taking the sin/cos 
atan etc of the same angles repetitively on both sides of the 'Module 
divide'. 

I believe the necessary Matrices are all exposed by the global->view
pointer so your Interface routine can grab whatever it needs

Cheers

Norman

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to