Changeset 2973 in Sophya for trunk/SophyaLib/SkyMap/longlat.h
- Timestamp:
- Jun 20, 2006, 6:01:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/longlat.h
r2322 r2973 1 // Geometry handling class 2 // B. Revenu, R. Ansari , G. Le Meur 2000 1 // Angles/geometrie 3D 2 // B. Revenu 2000 3 // R. Ansari 2006 3 4 // DAPNIA/SPP (Saclay) / CEA LAL - IN2P3/CNRS (Orsay) 4 5 … … 10 11 #include <iostream> 11 12 #include <stdio.h> 13 14 12 15 #include <string.h> 13 16 #include "utilgeom.h" … … 30 33 LongLat(double x, double y, double z); 31 34 LongLat(const LongLat&); 32 35 36 //! Set the longitude/latitude coordinates (in radians) 33 37 void Set(double longitude, double latitude); 38 //! Return the longitude value (in radians) 34 39 double Longitude() const {return _lon;} 40 //! Return the phi value (in radians) 35 41 double Phi() const {return _lon;} 42 //! Return the latitude value (in radians) 36 43 double Latitude() const {return _lat;} 44 //! Return the theta value (in radians) 37 45 double Theta() const {return pi_over_2-_lat;} 38 46 47 //! print the object (ascii representation) on stream os 39 48 void Print(ostream& os) const; 40 49
Note:
See TracChangeset
for help on using the changeset viewer.