Changeset 2973 in Sophya for trunk/SophyaLib/SkyMap/unitvector.cc


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/unitvector.cc

    r2615 r2973  
     1//   3-D Geometry
     2//        B. Revenu, G. Le Meur   2000
     3//        R. Ansari (documentation 2006)
     4// DAPNIA/SPP (Saclay) / CEA    LAL - IN2P3/CNRS  (Orsay)
     5
    16#include <math.h>
    27#include "sopnamsp.h"
    38#include "unitvector.h"
    4 //*****************************************************************************
    5 //++
    6 // Class        UnitVector
    7 //
    8 // include      unitvector.h vector3d.h math.h
    9 //--
    10 //++
    11 //
    12 // Links        Parents
    13 //
    14 //    Vector3d
    15 //   
    16 //--
    17 //++
    18 // Titre        Constructors
    19 //--
    20 //++
     9
     10/*!
     11   \class SOPHYA::UnitVector
     12   \ingroup SkyMap
     13   \brief Specialisation of Vector3d class for representing unit (length=1) 3-vectors.
     14*/
     15
     16//! Default constructor : unit vector in the x direction
    2117UnitVector::UnitVector() : Vector3d(1.,0.,0.)
    22 //
    23 //--
    2418{
    2519}
    26 //++
     20
     21//! Constructor: Unit vector along the x,y,z cartesian coordinates
    2722UnitVector::UnitVector(double x, double y, double z) : Vector3d(x,y,z)
    28 //
    29 //--
    3023{
    3124  this->Normalize();
    3225}
    33 //++
     26
     27//! Constructor: Unit vector along the theta,phi direction (spherical coordinates)
    3428UnitVector::UnitVector(double theta, double phi) : Vector3d(theta,phi)
    35 //
    36 //--
    3729{
    3830  this->Normalize();
    3931}
    40 //++
     32//! copy constructor
    4133UnitVector::UnitVector(const Vector3d& v) : Vector3d(v)
    42 //
    43 //--
    4434{
    4535  this->Normalize();
    4636}
    47 //++
    48 // Titre        Public Method
    49 //--
    50 //++
     37//! print the vector on stream os
    5138void UnitVector::Print(ostream& os) const
    52 //
    53 //--
    5439{
    5540  os << "UnitVector : (X,Y,Z)= (" << _x << ", " << _y << ", " << _z
Note: See TracChangeset for help on using the changeset viewer.