computeSunPosition
Computes the position of the Sun in Earth's fixed frame.
Parameters:
| Name | Type | Argument | 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. |
Throws:
DeveloperError
: julianDate is required.
Returns:
Cartesian3
The modified result parameter or a new Cartesian3 instance if none was provided.
Example
var sunPosition = computeSunPosition(new JulianDate());
