On Sun, 2009-01-04 at 17:16 +0100, Csaba Halász wrote:
> 0x0000000000a6fcd1 in SGGeodesy::SGCartToGeod (ca...@0x7fff5476bb00,
> ge...@0x7fff5476bae0) at simgear/math/SGGeodesy.cxx:96
> 96        geod.setElevationM((k+e2-1)*sqrtDDpZZ/k);
> (gdb) p k
> $1 = 0
> 
> It can't convert (0, 0, 0). Not sure what to do about this, just
> return (0, 0, 0) as result too?

Since (0,0,0) is a valid Cartesian coordinate and corresponds to any
angles with a radius of 0, returning (0,0,0) makes sense.
   
> If this conversion is not defined, then for nasal callers f_carttogeod
> in Scripting/NasalSys.cxx should probably check and throw an error.

Ron



------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to