Terrenus HRPT v2.2

terrenus.orbit
Class Sun

java.lang.Object
  extended by terrenus.orbit.Sun

public class Sun
extends java.lang.Object

The Sun class models the sun position over time. The position is computed relative to a WGS 72 Earth model.


Constructor Summary
Sun()
           
 
Method Summary
static double[] getPosition(double[] output)
          Gets the position of the sun in Earth-centered inertial coordinates.
static void setDate(java.util.Date date)
          Sets the date object and performs the sun position computation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sun

public Sun()
Method Detail

setDate

public static void setDate(java.util.Date date)
Sets the date object and performs the sun position computation. This method must be called prior to using getPosition(double[]).

Parameters:
date - the date for the sun computations.

getPosition

public static double[] getPosition(double[] output)
Gets the position of the sun in Earth-centered inertial coordinates.

Parameters:
output - the output position array to fill. If null, an output array is created.
Returns:
the output position array as [x,y,z] in kilometers.

Terrenus HRPT v2.2