Changeset 2043 in ntrip for trunk/BNC/bncutils.cpp
- Timestamp:
- Nov 26, 2009, 4:06:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncutils.cpp
r1942 r2043 168 168 return gga.toAscii(); 169 169 } 170 171 // 172 //////////////////////////////////////////////////////////////////////////// 173 void RSW_to_XYZ(const ColumnVector& rr, const ColumnVector& vv, 174 const ColumnVector& rsw, ColumnVector& xyz) { 175 176 ColumnVector along = vv / vv.norm_Frobenius(); 177 ColumnVector cross = crossproduct(rr, vv); cross /= cross.norm_Frobenius(); 178 ColumnVector radial = crossproduct(along, cross); 179 180 Matrix RR(3,3); 181 RR.Column(1) = radial; 182 RR.Column(2) = along; 183 RR.Column(3) = cross; 184 185 xyz = RR * rsw; 186 }
Note:
See TracChangeset
for help on using the changeset viewer.