SUN_POSN_CALCULATOR Class Reference

suncalc.h More...

#include <mi32/suncalc.h>

List of all members.

Public Member Functions

 SUN_POSN_CALCULATOR (const DATETIME &datetime, const DPOINT2D &latlon)
 SUN_POSN_CALCULATOR ()
 ~SUN_POSN_CALCULATOR ()
ERRVALUE Calculate (double &SunAzimuth, double &SunElevation)
const DATETIMEGetDateTime () const
const DPOINT2DGetLocation () const
double GetSunAzimuth ()
double GetSunElevationAngle ()
void SetDateTime (const DATETIME &datetime)
void SetLocation (const DPOINT2D &location)

Private Member Functions

double CalcEccentricityEarthOrbit (double &t)
double CalcEquationOfTime (double &t)
double CalcGeomMeanAnomalySun (double &t)
double CalcGeomMeanLongSun (double &t)
double CalcMeanObliquityOfEcliptic (double &t)
double CalcObliquityCorrection (double &t)
double CalcSunApparentLong (double &t)
double CalcSunDeclination (double &t)
double CalcSunEqOfCenter (double &t)
double CalcSunTrueLong (double &t)
double CalcTimeJulianCent (double)

Private Attributes

DATETIME m_DateTime
DPOINT2D m_Location
double m_SunAzimuth
double m_SunElevation

Detailed Description

suncalc.h

Id
suncalc.h_v 1.1 2006/11/20 20:44:42 drb Exp
Log
suncalc.h_v

Revision 1.1 2006/11/20 20:44:42 drb Initial revision Class that calculates the position of the sun based on location (Lat-Lon), date and time


Constructor & Destructor Documentation

SUN_POSN_CALCULATOR::SUN_POSN_CALCULATOR (  )  [inline]
SUN_POSN_CALCULATOR::SUN_POSN_CALCULATOR ( const DATETIME datetime,
const DPOINT2D latlon 
)
SUN_POSN_CALCULATOR::~SUN_POSN_CALCULATOR (  )  [inline]

Member Function Documentation

double SUN_POSN_CALCULATOR::CalcEccentricityEarthOrbit ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcEquationOfTime ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcGeomMeanAnomalySun ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcGeomMeanLongSun ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcMeanObliquityOfEcliptic ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcObliquityCorrection ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcSunApparentLong ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcSunDeclination ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcSunEqOfCenter ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcSunTrueLong ( double &  t  )  [private]
double SUN_POSN_CALCULATOR::CalcTimeJulianCent ( double   )  [private]
ERRVALUE SUN_POSN_CALCULATOR::Calculate ( double &  SunAzimuth,
double &  SunElevation 
)

Calculate the elevation and azimuth to the sun from the set location, date and time.

Parameters:
SunElevation Where north is zero, clockwise Where horizontal is zero, up is positive
const DATETIME& SUN_POSN_CALCULATOR::GetDateTime (  )  const

Get the date and time used.

const DPOINT2D& SUN_POSN_CALCULATOR::GetLocation (  )  const

Get the location in Latitude and Longitude.

double SUN_POSN_CALCULATOR::GetSunAzimuth (  )  [inline]

Get the last calculated azimuth angle.

double SUN_POSN_CALCULATOR::GetSunElevationAngle (  )  [inline]

Get the last calculated elevation angle.

void SUN_POSN_CALCULATOR::SetDateTime ( const DATETIME datetime  ) 

Set the date and time to use.

void SUN_POSN_CALCULATOR::SetLocation ( const DPOINT2D location  ) 

Set the location in Latitude and Longitude.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:33:54 2012 for TNTsdk 2012 by  doxygen 1.6.1