Changeset 2973 in Sophya for trunk/SophyaLib/SkyMap/longlat.h


Ignore:
Timestamp:
Jun 20, 2006, 6:01:49 PM (19 years ago)
Author:
ansari
Message:

1/ Nettoyage+commentaires/doxygen ds Vector3d, UnitVector, LongLat,
SphereCoordSys ...
2/ Ajout de la classe angle pour faciliter les conversions rad<>deg<>arcmin
dans le fichier vector3d.h .cc
3/ nettoyage/uniformisation methodes print pour pixelmap, ajout de la
methode PixelMap<T>::Show()
4/ Ajout methodes SphericalMap<T>::HasSymThetaSlice() et
GetSymThetaSliceIndex(int_4 idx) et leurs implementations pour
SphereHEALPix et SphereThetaPhi en vue de l'optimisation du calcul
transforme Ylm
5/ Ajout methode ResolToSizeIndex ds SphereThetaPhi , SphereHEALPix et
SphereECP

Reza , 20 Juin 2006

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
    34// DAPNIA/SPP (Saclay) / CEA    LAL - IN2P3/CNRS  (Orsay)
    45
     
    1011#include <iostream>
    1112#include <stdio.h>
     13
     14
    1215#include <string.h>
    1316#include "utilgeom.h"
     
    3033  LongLat(double x, double y, double z);
    3134  LongLat(const LongLat&);
    32  
     35
     36  //! Set the longitude/latitude coordinates (in radians) 
    3337  void Set(double longitude, double latitude);
     38  //! Return the longitude value (in radians)
    3439  double Longitude() const {return _lon;}
     40  //! Return the phi value (in radians)
    3541  double Phi() const {return _lon;}
     42  //! Return the latitude value (in radians)
    3643  double Latitude() const {return _lat;}
     44  //! Return the theta value (in radians)
    3745  double Theta() const {return pi_over_2-_lat;}
    3846
     47  //! print the object (ascii representation) on stream os
    3948  void Print(ostream& os) const;
    4049 
Note: See TracChangeset for help on using the changeset viewer.