Changeset 5921 for trunk/MagicSoft/Mars/mpointing/MSrcPosFromModel.cc
- Timestamp:
- 01/21/05 10:54:30 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MSrcPosFromModel.cc
r4966 r5921 130 130 conv = fPoint0405; 131 131 132 MVector3 sky; 133 sky.SetRaDec(fPointPos->GetRaRad(), fPointPos->GetDecRad()); 132 TVector2 d; 134 133 135 // Get current star position (off center)136 MVector3 vl2 = MAstroSky2Local(*fTime, *fObservatory)*sky;137 // Get corrected position camera center)138 TVector3 vl1 = conv->Correct(vl2);134 if (conv) 135 { 136 MVector3 sky; 137 sky.SetRaDec(fPointPos->GetRaRad(), fPointPos->GetDecRad()); 139 138 140 // Calculate x,y of za2 141 TVector2 d = MAstro::GetDistOnPlain(vl1, vl2, fGeom->GetCameraDist()*1000); 139 // Get current star position (off center) 140 MVector3 vl2 = MAstroSky2Local(*fTime, *fObservatory)*sky; 141 // Get corrected position camera center) 142 TVector3 vl1 = conv->Correct(vl2); 143 144 // Calculate x,y of za2 145 d = MAstro::GetDistOnPlain(vl1, vl2, fGeom->GetCameraDist()*1000); 146 } 142 147 143 148 // Set Source position
Note:
See TracChangeset
for help on using the changeset viewer.