Changeset 2985 in Sophya for trunk/SophyaLib/SkyMap/spherethetaphi.h
- Timestamp:
- Jun 21, 2006, 5:55:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherethetaphi.h
r2978 r2985 27 27 public : 28 28 29 //! return the size index value corresponding to resolution res (in radian)29 //! return the size index value corresponding to resolution \b res (in radian) 30 30 static inline int_4 ResolToSizeIndex(double res) 31 31 { return (int_4)((M_PI/2./res)+0.5); } 32 //! return the pixel resolution (in radian) for the size index \b m 33 static inline double SizeIndexToResol(int_4 m) 34 { return (M_PI/(2.*(double)m)); } 32 35 33 36 SphereThetaPhi();
Note:
See TracChangeset
for help on using the changeset viewer.