JulianDateGetCenterOfWindow Method |
Divides time into windows, each of length windowLength seconds, with the first
window centered on referenceEpoch. Then, identifies which window contains
date and returns the date that is at the center of that window. This is helpful
for computing a discrete value for a range of Julian dates.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static JulianDate GetCenterOfWindow(
JulianDate referenceEpoch,
double windowLength,
JulianDate date
)
Public Shared Function GetCenterOfWindow (
referenceEpoch As JulianDate,
windowLength As Double,
date As JulianDate
) As JulianDate
public:
static JulianDate GetCenterOfWindow(
JulianDate referenceEpoch,
double windowLength,
JulianDate date
)
static member GetCenterOfWindow :
referenceEpoch : JulianDate *
windowLength : float *
date : JulianDate -> JulianDate
Parameters
- referenceEpoch
- Type: AGI.Foundation.TimeJulianDate
The Julian date that defines the start of a window. - windowLength
- Type: SystemDouble
The length of each window, in seconds. - date
- Type: AGI.Foundation.TimeJulianDate
The date to find.
Return Value
Type:
JulianDateThe date at the center of the window that contains the specified date.
See Also