CelestialObject.Range(CelestialObject, TimeSpan) Method

Top 

Description

Returns the distance from the center of the calling CelestialObject to the center of the targetCelestialObject at the specified epoch.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

CelestialObject.Range(

CelestialObject targetCelestialObject,


TimeSpan epoch)

 

 

Arguments

targetCelestialObject


Description:

CelestialObject to use in the calculation of range from the calling CelestialObject.

 

 

epoch


Description:

The epoch at which to calculate the range.

 

 

 

Return Value

Type:

number

Units:

km

 

 

Returns the distance from the center of the calling CelestialObject to the desired target object.

 

Syntax

myVariable1 = myCelestialObject1.Range(myCelestialObject2, myTimeSpan1);

 

 

See also

CelestialObject Object

CelestialObject.Range

CelestialObjects Guide