VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfutil
ephemerisUtil.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include "
vrfutil/vrfutilDefines.h
"
9
#include <time.h>
10
#include <matrix/vlMath.h>
11
12
/***************************************************************************/
13
/* Note: year,month,date = calendar date, 1801-2099 only. */
14
/* Eastern longitude positive, Western longitude negative */
15
/* Northern latitude positive, Southern latitude negative */
16
/* The longitude value IS critical in this function! */
17
/* altit = the altitude which the Sun should cross */
18
/* Set to -35/60 degrees for rise/set, -6 degrees */
19
/* for civil, -12 degrees for nautical and -18 */
20
/* degrees for astronomical twilight. */
21
/* *rise = where to store the rise time */
22
/* *set = where to store the set time */
23
/* Both times are relative to the specified altitude, */
24
/* and thus this function can be used to compute */
25
/* various twilight times, as well as rise/set times */
26
/* Return value: 0 = sun rises/sets this day, times stored at */
27
/* *trise and *tset. */
28
/* +1 = sun above the specified "horizon" 24 hours. */
29
/* *trise set to time when the sun is at south, */
30
/* minus 12 hours while *tset is set to the south */
31
/* time plus 12 hours. "Day" length = 24 hours */
32
/* -1 = sun is below the specified "horizon" 24 hours */
33
/* "Day" length = 0 hours, *trise and *tset are */
34
/* both set to the time when the sun is at south. */
35
/* */
36
/**********************************************************************/
37
DT_DLL_vrfutil
bool
sunriseset
( time_t utcTime,
double
lon,
double
lat,
38
double
altit,
double
& trise,
double
& tset );
39
40
DT_DLL_vrfutil
void
find_moonrise_set
(time_t utcTime,
double
glong,
double
glat,
41
double
& moonrise,
double
& moonset);
42
43
DT_DLL_vrfutil
double
moonIllumination
(time_t utcTime);
44
46
DT_DLL_vrfutil
time_t
timezone_adjusted
(time_t utcTime,
double
glong);
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)