Changeset 2968 in Sophya for trunk/SophyaLib/SkyMap/sphereecp.cc
- Timestamp:
- Jun 6, 2006, 6:53:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/sphereecp.cc
r2882 r2968 304 304 305 305 template <class T> 306 r_8 SphereECP<T>::ThetaOfSlice(int_4 index) const 307 { 308 if( (index < 0) || (index >= _pixels.SizeY()) ) 309 throw RangeCheckError("SphereECP::ThetaOfSlice() theta index out of range"); 310 return (_theta1 + (index+0.5)*_dtheta); 311 312 } 313 314 template <class T> 306 315 void SphereECP<T>::GetThetaSlice(int_4 index,r_8& theta, 307 316 TVector<r_8>& phi, TVector<T>& value) const 308 317 { 309 318 if( (index < 0) || (index >= _pixels.SizeY()) ) 310 throw RangeCheckError("SphereECP::GetThetaSlice() thetaindex out of range");319 throw RangeCheckError("SphereECP::GetThetaSlice() index out of range"); 311 320 312 321 theta = _theta1 + (index+0.5)*_dtheta; … … 336 345 { 337 346 if( (index < 0) || (index >= _pixels.SizeY()) ) 338 throw RangeCheckError("SphereECP::GetThetaSlice() thetaindex out of range");347 throw RangeCheckError("SphereECP::GetThetaSlice() index out of range"); 339 348 340 349 theta = _theta1 + (index+0.5)*_dtheta;
Note:
See TracChangeset
for help on using the changeset viewer.