solar.c
static inline double
elevation_from_hour_angle(double latitude, double declination, double hour_angle)
{
	double rc = cos(radians(latitude));
	rc *= cos(hour_angle) * cos(declination);
	rc += sin(radians(latitude)) * sin(declination);
	return asin(rc);
}
/**
 * Calculates the Sun's elevation from the solar hour angle
 * 
 * @param   longitude    The longitude in degrees eastwards
 *                       from Greenwich, negative for westwards
 * @param   declination  The declination, in radians
 * @param   hour_angle   The solar hour angle, in radians
 * @return               The Sun's elevation, in radians
 */
Calculates the Sun's elevation from the solar hour angle

@param   longitude    The longitude in degrees eastwards
from Greenwich, negative for westwards
@param   declination  The declination, in radians
@param   hour_angle   The solar hour angle, in radians
@return               The Sun's elevation, in radians
Calculates the Sun ' s elevation from the solar hour angle @param longitude The longitude in degrees eastwards from Greenwich negative for westwards @param declination The declination in radians @param hour_angle The solar hour angle in radians @return The Sun ' s elevation in radians
static inline double
elevation_from_hour_angle(double latitude, double declination, double hour_angle)
{
	double rc = cos(radians(latitude));
	rc *= cos(hour_angle) * cos(declination);
	rc += sin(radians(latitude)) * sin(declination);
	return asin(rc);
}
static inline double elevation_from_hour_angle ( double latitude , double declination , double hour_angle ) { double rc = cos ( radians ( latitude ) ) ; rc *= cos ( hour_angle ) * cos ( declination ) ; rc += sin ( radians ( latitude ) ) * sin ( declination ) ; return asin ( rc ) ; }
Calculates the Sun's elevation from the solar hour angle
Calculates the Sun ' s elevation from the solar hour angle