STK Vector Geometry ToolSend comments on this topic.
FindTimes Method (IAgCrdnEventArray)
See Also
Windows





Windows & Linux

Description

Return computed array of times.

Syntax

[Visual Basic .NET]
Public Function FindTimes() As IAgCrdnFindTimesResult
[C#]
public IAgCrdnFindTimesResult FindTimes();
[Managed C++]
public: IAgCrdnFindTimesResult ^ FindTimes();
[Unmanaged C++]
public: HRESULT FindTimes(
    IAgCrdnFindTimesResult ** ppRetVal
);
[Java]
public IAgCrdnFindTimesResult findTimes();
[Python - STK API ]
def FindTimes(self) -> "IAgCrdnFindTimesResult":

See Also

Example

Determines the time intervals of an event array.
[C#]
IAgCrdnEventArray eventArray = provider.EventArrays["Orbit.Classical.SemimajorAxis.TimesOfLocalMax"];

IAgCrdnFindTimesResult foundTimes = eventArray.FindTimes();
if (foundTimes.IsValid)
{
    Console.WriteLine("Times");
    int numTimes = foundTimes.Times.GetLength(0);
    for (int i = 0; i < numTimes; ++i)
    {
        Console.WriteLine(foundTimes.Times.GetValue(i));
    }

    foreach (IAgCrdnInterval timeArray in foundTimes.Intervals)
    {
        Console.WriteLine("Start: " + timeArray.Start);
        Console.WriteLine("Stop: " + timeArray.Stop);
    }
}
Determines the time intervals of an event array.
[Visual Basic .NET]
Dim eventArray As IAgCrdnEventArray = provider.EventArrays("Orbit.Classical.SemimajorAxis.TimesOfLocalMax")

Dim foundTimes As IAgCrdnFindTimesResult = eventArray.FindTimes()
If foundTimes.IsValid Then
	Console.WriteLine("Times")
	Dim numTimes As Integer = foundTimes.Times.GetLength(0)
	Dim i As Integer = 0
	While i < numTimes
		Console.WriteLine(foundTimes.Times.GetValue(i))
		System.Threading.Interlocked.Increment(i)
	End While

	For Each timeArray As IAgCrdnInterval In foundTimes.Intervals
		Console.WriteLine("Start: " + timeArray.Start)
		Console.WriteLine("Stop: " + timeArray.[Stop])
	Next
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.