Changeset 2973 in Sophya for trunk/SophyaLib/SkyMap/spherethetaphi.cc
- Timestamp:
- Jun 20, 2006, 6:01:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherethetaphi.cc
r2969 r2973 603 603 } 604 604 605 //! Return true : All theta slices have a symmetric slice at Pi-Theta in SphereThetaPhi 606 template <class T> 607 bool SphereThetaPhi<T>::HasSymThetaSlice() const 608 { 609 return true; 610 } 611 //! Return the slice index for the symmetric slice at theta=Pi-ThetaOfSlice(idx) 612 template <class T> 613 int_4 SphereThetaPhi<T>::GetSymThetaSliceIndex(int_4 idx) const 614 { 615 if(idx < 0 || idx >= NbThetaSlices()) 616 throw RangeCheckError("SphereThetaPhi::GetSymThetaSliceIndex index out of range"); 617 return (NbThetaSlices()-1-idx); 618 } 619 605 620 /*! 606 621 \brief return a Theta slice information … … 676 691 void SphereThetaPhi<T>::print(ostream& os) const 677 692 { 693 Show(os); 678 694 if(this->mInfo_) os << " DVList Info= " << *(this->mInfo_) << endl; 679 695 //
Note:
See TracChangeset
for help on using the changeset viewer.