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
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.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] |
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