AGI STK VGT 11 Send 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).





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, _
   ByRef 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,
ref 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
);

[Java]
public IAgCrdnPointSamplingResult sample(
IAgCrdnPoint Point,
IAgCrdnSystem ReferenceSystem,
Object[] 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 ** ReturnValue
);

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

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1