STK Vector Geometry ToolSend comments on this topic.
Sample Method (IAgCrdnPointCommonTasks)
See Also
Point
Specify a point which position and velocity to sample.
ReferenceSystem
Specify a reference system.
Intervals
Specify time intervals as a one-dimensional array of pairs of start/stop times for each interval. The interval start/stop times must be specified using the current unit preferences.
MinStep
Specify a minimum sampling step size (in time units, i.e. seconds, hours, etc. depending on the current unit preferences).
MaxStep
Specify a maximum sampling step size (in time units, i.e. seconds, hours, etc. depending on the current unit preferences).
TargetRate
Specify an angular threshold that limits how much trajectory curvature is tolerated between subsequent samples. The value uses the angular units (radians, degrees, etc. depending on the current unit preferences).
Windows





Windows & Linux

Description

Computes and returns tabulated positions and velocities of a point with respect to reference system using specified sampling parameters.

Syntax

[Visual Basic .NET]
Public Function Sample( _
    ByVal Point As IAgCrdnPoint, _
    ByVal ReferenceSystem As IAgCrdnSystem, _
    ByVal Intervals As System.Array, _
    ByVal MinStep As Double, _
    ByVal MaxStep As Double, _
    ByVal TargetRate As System.Object _
) As IAgCrdnPointSamplingResult
[C#]
public IAgCrdnPointSamplingResult Sample(
    IAgCrdnPoint Point,
    IAgCrdnSystem ReferenceSystem,
    System.Array Intervals,
    double MinStep,
    double MaxStep,
    System.Object TargetRate
);
[Managed C++]
public: IAgCrdnPointSamplingResult^ Sample(
    IAgCrdnPoint ^ Point,
    IAgCrdnSystem ^ ReferenceSystem,
    System::Array ^ Intervals,
    double MinStep,
    double MaxStep,
    VARIANT TargetRate
);
[Unmanaged C++]
public: HRESULT Sample(
    IAgCrdnPoint * Point,
    IAgCrdnSystem * ReferenceSystem,
    SAFEARRAY * * Intervals,
    double MinStep,
    double MaxStep,
    VARIANT TargetRate,
    IAgCrdnPointSamplingResult ** ppRetVal
);
[Java]
public IAgCrdnPointSamplingResult sample(
    IAgCrdnPoint Point,
    IAgCrdnSystem ReferenceSystem,
    AgSafeArray Intervals,
    double MinStep,
    double MaxStep,
    AgVariant TargetRate
);
[Python - STK API ]
def Sample(self, Point:"IAgCrdnPoint", ReferenceSystem:"IAgCrdnSystem", Intervals:list, MinStep:float, MaxStep:float, TargetRate:typing.Any) -> "IAgCrdnPointSamplingResult":

Parameters

Point
Specify a point which position and velocity to sample.
ReferenceSystem
Specify a reference system.
Intervals
Specify time intervals as a one-dimensional array of pairs of start/stop times for each interval. The interval start/stop times must be specified using the current unit preferences.
MinStep
Specify a minimum sampling step size (in time units, i.e. seconds, hours, etc. depending on the current unit preferences).
MaxStep
Specify a maximum sampling step size (in time units, i.e. seconds, hours, etc. depending on the current unit preferences).
TargetRate
Specify an angular threshold that limits how much trajectory curvature is tolerated between subsequent samples. The value uses the angular units (radians, degrees, etc. depending on the current unit preferences).

See Also

© 2024 Analytical Graphics, Inc. All Rights Reserved.