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( _
ByVal Positions As System.Array _
) As System.Array
|
[C#] |
---|
public System.Array Interpolate(
System.Array Positions
);
|
[Managed C++] |
---|
public: System::Array Interpolate(
System::Array ^ Positions
);
|
[Unmanaged C++] |
---|
public: HRESULT Interpolate(
SAFEARRAY * * Positions,
SAFEARRAY * * ppRetVal
);
|
[Java] |
---|
public AgSafeArray interpolate(
AgSafeArray Positions
);
|
[Python - STK API ] |
---|
def Interpolate(self, Positions:list) -> list:
|
Parameters
See Also
Example
Shows the format of the Positions parameter when interpolating positions.
[C#] |
---|
IAgStkGraphicsPositionInterpolator interpolator = sceneManager.Initializers.GreatArcInterpolator.InitializeWithCentralBody("Earth") as IAgStkGraphicsPositionInterpolator;
Array positions = new object[]
{
39.88, -75.25, 0,
38.85, -77.04, 0,
};
Array results = interpolator.Interpolate(ref positions);
|
|
Shows the format of the Positions parameter when interpolating positions.
[Visual Basic .NET] |
---|
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)
|
|