Norman Vine > Sent: 20 October 2004 18:08 > To: FlightGear developers discussions > Subject: RE: [Flightgear-devel] status of aircraft carrier > > Vivian Meazza writes: > > > > It would be easy to convert to X,Y,Z coordinates, if I knew the > equations > > see SimGear / simgear / math / sg_geodesy > > /** > * Convert a geodetic lat/lon/altitude to a cartesian point. > * > * @param lat (in) Latitude, in radians > * @param lon (in) Longitude, in radians > * @param alt (in) Altitude, in meters above the WGS84 ellipsoid > * @param xyz (out) Pointer to cartesian point. > */ > void sgGeodToCart(double lat, double lon, double alt, double* xyz); >
Ta ever so, that's saved me hours of research. Not brilliant though. In the property tree Lat/Lon is in degrees, and altitude in ft, so that's a 2 step conversion. > > or, better, I could start in X,Y,Z. I think this is a step too far right now. Conversion will do at this stage of development. Thanks again Vivian _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
