Changeset 7251 in ntrip for trunk/BNC/src/bncutils.cpp
- Timestamp:
- Aug 24, 2015, 5:56:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncutils.cpp
r7244 r7251 411 411 // Rectangular Coordinates -> Geocentric Coordinates 412 412 //////////////////////////////////////////////////////////////////////////// 413 voidxyz2geoc(const double* XYZ, double* Geoc) {413 t_irc xyz2geoc(const double* XYZ, double* Geoc) { 414 414 415 415 const double bell = t_CST::aell*(1.0-1.0/t_CST::fInv) ; 416 416 const double e2 = (t_CST::aell*t_CST::aell-bell*bell)/(t_CST::aell*t_CST::aell) ; 417 418 417 double Ell[3]; 419 xyz2ell(XYZ, Ell); 420 418 if (xyz2ell(XYZ, Ell) != success) { 419 return failure; 420 } 421 421 double rho = sqrt(XYZ[0]*XYZ[0]+XYZ[1]*XYZ[1]+XYZ[2]*XYZ[2]); 422 422 double Rn = t_CST::aell/sqrt(1-(e2)*pow(sin(Ell[0]),2)); … … 425 425 Geoc[1] = Ell[1]; 426 426 Geoc[2] = rho-t_CST::rgeoc; 427 428 return success; 427 429 } 428 430
Note:
See TracChangeset
for help on using the changeset viewer.