Contains functions for finding the Cartesian coordinates of the sun and the moon in the
Earth-centered inertial frame.
Methods
(static) computeMoonPositionInEarthInertialFrame(julianDateopt, resultopt) → {Cartesian3}
Computes the position of the Moon in the Earth-centered inertial frame
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
julianDate |
JulianDate |
<optional> |
The time at which to compute the Sun's position, if not provided the current system time is used. |
result |
Cartesian3 |
<optional> |
The object onto which to store the result. |
Returns:
Calculated moon position
- Type
- Cartesian3
(static) computeSunPositionInEarthInertialFrame(julianDateopt, resultopt) → {Cartesian3}
Computes the position of the Sun in the Earth-centered inertial frame
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
julianDate |
JulianDate |
<optional> |
The time at which to compute the Sun's position, if not provided the current system time is used. |
result |
Cartesian3 |
<optional> |
The object onto which to store the result. |
Returns:
Calculated sun position
- Type
- Cartesian3