AGI STK Graphics 11 Send comments on this topic.
Interpolate Method (IAgStkGraphicsPositionInterpolator)
See Also  Example
Positions
An array containing positions (in the order x, y, z) to use for interpolation.





Description

Computes interpolated positions based on the input positions. Returns an array of positions in the order x, y, z.

Syntax

[Visual Basic .NET]
Public Function Interpolate( _
   ByRef Positions As System.Array _
) As System.Array

[C#]
public System.Array Interpolate(
ref System.Array Positions
);

[Managed C++]
public: System::Array Interpolate(
System::Array ^^ Positions
);

[Java]
public Object[] interpolate(
Object[] Positions
);

[Unmanaged C++]
public: HRESULT Interpolate(
SAFEARRAY ** Positions,
SAFEARRAY ** Array
);

Parameters

Positions
An array containing positions (in the order x, y, z) to use for interpolation.

Example

Shows the format of the Positions parameter when interpolating positions.
[C#] Copy Code
IAgStkGraphicsPositionInterpolator interpolator = sceneManager.Initializers.GreatArcInterpolator.InitializeWithCentralBody("Earth"as IAgStkGraphicsPositionInterpolator; 
 
Array positions = new object[] 

    39.88, -75.250
    38.85, -77.040
}; 
 
Array results = interpolator.Interpolate(ref positions); 
 

Shows the format of the Positions parameter when interpolating positions.
[Visual Basic .NET] Copy Code
Dim interpolator As IAgStkGraphicsPositionInterpolator = TryCast(sceneManager.Initializers.GreatArcInterpolator.InitializeWithCentralBody("Earth"), IAgStkGraphicsPositionInterpolator)

Dim positions As Array = New Object() {39.88, -75.25, 0, 38.85, -77.04, 0}

Dim results As Array = interpolator.Interpolate(positions)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1