Description
Returns an array of track ids with a bool
value if it's in range of the object.
Syntax
[Visual Basic .NET] |
Public Function ComputeRanges( _
ByVal Mode As AgEMtoRangeMode, _
ByRef TrackIds As System.Array, _
ByVal Time As System.Object _
) As System.Array
|
Parameters
Example
Compute MTO ranges
[C#] |
Copy Code
|
IAgMtoAnalysisRange range = mto.Analysis.Range;
range.StkObjectPath = "Satellite/J2Satellite";
Array tracks = new object[]
{
1, 4
};
Array result = range.ComputeRanges(AgEMtoRangeMode.eMtoRangeModeEach, ref tracks, "1 Jan 2012 12:00:00.000");
for (int i = 0; i < result.GetLength(0); i++)
{
Console.WriteLine("Track #: {0}, Visible: {1}, Range: {2}", result.GetValue(i, 0), result.GetValue(i, 1), result.GetValue(i, 2));
}
|
|
Compute MTO ranges
[Visual Basic .NET] |
Copy Code
|
Dim range As
IAgMtoAnalysisRange = mto.Analysis.Range
range.StkObjectPath = "Satellite/J2Satellite"
#If Not CSToJava Then
#Else
#End If
Dim tracks As Array =
New Object() {1, 4}
#If Not CSToJava Then
Dim result As Array =
range.ComputeRanges(AgEMtoRangeMode.eMtoRangeModeEach, tracks,
"1 Jan 2012 12:00:00.000")
#Else
#End If
Dim i As
Integer = 0
While i < result.GetLength(0)
Console.WriteLine("Track #: {0}, Visible: {1}, Range: {2}",
result.GetValue(i, 0), result.GetValue(i, 1), result.GetValue(i,
2))
System.Math.Max(System.Threading.Interlocked.Increment(i),i
- 1)
End While
|
|
See Also