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





Windows & Linux

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

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

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)
© 2024 Analytical Graphics, Inc. All Rights Reserved.