WSF
WsfIntercept Namespace Reference

Functions

WSF_EXPORT double Intercept (const double aBodyLoc[3], double aBodySpd, const double aTgtLoc[3], const double aTgtVel[3], double aIntLoc[3], double aPredictAheadTime=0.0)

Detailed Description

Method(s) for performing intercept calculations.

Function Documentation

◆ Intercept()

double WsfIntercept::Intercept ( const double aBodyLoc[3],
double aBodySpd,
const double aTgtLoc[3],
const double aTgtVel[3],
double aIntLoc[3],
double aPredictAheadTime = 0.0 )

A low level routine to calculate the intercept point and the time to intercept. This routine ignores the heading of the intercepting body and assumes it can turn instantly.

Parameters
aBodyLocThe location of the body doing the intercepting.
aBodySpdThe speed of the body doing the intercepting. (assumed constant)
aTgtLocThe 'target' location.
aTgtVelThe 'target' velocity vector.
aIntLoc[output] The intercept location.
aPredictAheadTimeThe predict ahead time to add/remove additional time to intercept.
Returns
The time to the intercept point. If the value is less than zero then intercept is not possible and aIntLoc will be set to the value of aTgtLoc.
Note
The input vectors must all have the same reference frame, i.e. they must all be WCS or must all refer to the same NED frame.

Referenced by WsfGuidanceComputer::ComputeInterceptData(), WsfSA_EntityPerception::EstimatedTimeToIntercept(), WsfSA_Group::EstimatedTimeToIntercept(), WsfQuantumEvaluatorInterceptTime::Evaluate(), WsfStraightLineMover::Update(), WsfSA_Processor::UpdateTrackData(), and UT_DEFINE_SCRIPT_METHOD().

Copyrights Multiple, All Rights Reserved