Main Page   Namespace List   Compound List   File List   Compound Members   File Members  

SolarSystem.cxx

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/astro/src/SolarSystem.cxx,v 1.1.1.1 2002/08/13 00:20:46 burnett Exp $
00002 
00003 #include "astro/SolarSystem.h"
00004 
00005 #include "SolSystem.h"
00006 
00007 namespace astro {
00008 SolarSystem::SolarSystem(): m_ss(new SolSystem){}
00009 
00010 SolarSystem::SolarSystem( SolarSystem::Body body, JulianDate jd )
00011 : m_ss(new SolSystem)
00012 {
00013     direction(body, jd);
00014 
00015 }
00016 
00017 
00018 SkyDir SolarSystem::direction(Body body, JulianDate jd)
00019 {
00020     m_ss->SetObj(body);
00021     m_ss->CalculatePos(jd);
00022     m_dir = SkyDir(m_ss->Ra*180/M_PI, m_ss->Dec*180/M_PI);
00023 
00024     return m_dir;
00025 }
00026  
00027 
00028 SolarSystem::~SolarSystem(){ delete m_ss;}
00029  
00030 } // namespace astro

Generated on Wed Aug 14 10:09:35 2002 for astro by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001