CelestialObject.Range(CelestialObject, Variable) 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 millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

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

 

Method Signature

CelestialObject.Range(

CelestialObject targetCelestialObject,


Variable 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, myVariable2);

 

 

See also

CelestialObject Object

CelestialObject.Range

CelestialObjects Guide