Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Contains helper methods for astronomic calculations used for Sky and Time Of Day features.

Namespace: Visual3D
Assembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public class Astronomy
Public Class Astronomy

Members

            
 All Members  Constructors   Fields   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Astronomy()()()()
Initializes a new instance of the Astronomy class
Atan2Deg(Double, Double)
Returns the angle (in degrees) whose tangent is the quotient of two specified numbers.
ConvertEclipticToEquatorialRad(Double, Double, Double%, Double%)
Convert from ecliptic to ecuatorial spherical coordinates, in radians.
ConvertEquatorialToHorizontal(Double, Double, Double, Double, Double, Double%, Double%)
Convert from equatorial to horizontal coordinates. This function converts from angles relative to the earth's equator to angle relative to the horizon at a given point.
ConvertRectangularToSpherical(Double, Double, Double, Double%, Double%, Double%)
ConvertSphericalToRectangular(Double, Double, Double, Double%, Double%, Double%)
CosDeg(Double)
Calculate cosine of given angle, where angle is given in degrees
DegToRad(Double)
Convert radians to degrees
GetEclipticMoonPositionRad(Double, Double%, Double%)
Gets the moon position at a specific time in ecliptic coordinates
GetHorizontalMoonPosition(Double, Double, Double, Double%, Double%)
GetHorizontalSunPosition(Double, Double, Double, Double%, Double%)
Get the sun's position in the sky in, relative to the horizon. Output angles are in radians.
GetJulianDayFromGregorianDateTime(DateTime)
Get astronomical julian day from normal gregorian calendar. Calculate julian day from a day in the normal gregorian calendar. Time should be given as UTC. See http://en.wikipedia.org/wiki/Julian_day
J2000
NormalizeDegrees(Double)
Normalize an angle to the 0, 360 range.
PI
RadToDeg(Double)
Convert radians to degrees.
SinDeg(Double)
Calculate sine of given angle, where angle is given in degrees

Inheritance Hierarchy

System..::..Object
  Visual3D..::..Astronomy

See Also