Avionics
Dropship Simulator
Library::Solar Class Reference

#include <Solar.h>

Public Member Functions

 Solar ()
 
 Solar (float prmLatitude, float prmLongitude, float prmAltitudeFeet, float prmZenithDegrees)
 
float calculateSunrise (int year, int month, int day, int localOffset, int daylightSavings) const
 
float calculateSunset (int year, int month, int day, int localOffset, int daylightSavings) const
 

Private Attributes

float lat = 0.0f
 
float lng = 0.0f
 
float ALTITUDE = 0.0f
 
float ZENITH = 0.0f
 

Detailed Description

Definition at line 13 of file Solar.h.

Constructor & Destructor Documentation

◆ Solar() [1/2]

Library::Solar::Solar ( )
inline

Definition at line 18 of file Solar.h.

◆ Solar() [2/2]

Library::Solar::Solar ( float  prmLatitude,
float  prmLongitude,
float  prmAltitudeFeet,
float  prmZenithDegrees 
)
inline

Definition at line 19 of file Solar.h.

Member Function Documentation

◆ calculateSunrise()

float Library::Solar::calculateSunrise ( int  year,
int  month,
int  day,
int  localOffset,
int  daylightSavings 
) const
inline

assert the sun rises on this location (on the specified date)

Definition at line 27 of file Solar.h.

Here is the caller graph for this function:

◆ calculateSunset()

float Library::Solar::calculateSunset ( int  year,
int  month,
int  day,
int  localOffset,
int  daylightSavings 
) const
inline

assert the sun rises on this location (on the specified date)

Definition at line 88 of file Solar.h.

Here is the caller graph for this function:

Member Data Documentation

◆ ALTITUDE

float Library::Solar::ALTITUDE = 0.0f
private

Definition at line 15 of file Solar.h.

◆ lat

float Library::Solar::lat = 0.0f
private

Definition at line 15 of file Solar.h.

◆ lng

float Library::Solar::lng = 0.0f
private

Definition at line 15 of file Solar.h.

◆ ZENITH

float Library::Solar::ZENITH = 0.0f
private

Definition at line 15 of file Solar.h.


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