WSF
WsfUtil.hpp File Reference
#include "wsf_export.h"
#include <vector>
#include "UtMatrix.hpp"
#include "UtSphericalEarth.hpp"
#include "UtVec3.hpp"
#include "WsfTrackId.hpp"
Include dependency graph for WsfUtil.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  WsfUtil
 A set of utilities that perform generic calculations among WSF objects.

Functions

template<class T1, class T2>
double WsfUtil::TimeToDestination (T1 &aSource, T2 &aDest, const double aVel[3])
 Calculate the time it would take an object (e.g., a WsfPlatform) to traverse a great circle distance from a source to a destination.
template<class T1, class T2>
double WsfUtil::DistanceToDestination (T1 &aSource, T2 &aDest)
 Calculate the great circle distance from a source to a destination.
int WSF_EXPORT WsfUtil::CountBitsOn (unsigned int aBitMask)
unsigned int WsfUtil::GenerateBitMask (int aNumBits)
void WSF_EXPORT WsfUtil::ClosestApproachPoint2D (const double aMoverLocWCS[3], const double aMoverVelWCS[3], const double aTargetLocWCS[3], double aClosestLocWCS[3])
double WSF_EXPORT WsfUtil::ClosestApproachPoint3D (const double aMoverLocWCS[3], const double aMoverVelWCS[3], const double aTargetLocWCS[3], double aClosestLocWCS[3])
bool WSF_EXPORT WsfUtil::PotentiallyWithinRange (double aSimTime, WsfPlatform *aObject1Ptr, WsfPlatform *aObject2Ptr, double aMaximumRange)
bool WSF_EXPORT WsfUtil::TriangulateLocation (const double aOriginWCS_1[3], const double &aBearing1, const double &aElevation1, const double aOriginWCS_2[3], const double &aBearing2, const double &aElevation2, double aLocationWCS[3])
void WSF_EXPORT WsfUtil::ConvertRangeBearing (const double aFromLocationWCS[3], UtEntity *aToEntity, double &aRange, double &aBearing)
void WSF_EXPORT WsfUtil::ErrorNED (double aRange, double aBearing, double aElevation, double aRangeError, double aBearingError, double aElevationError, double aErrorNED[3])
void WSF_EXPORT WsfUtil::ErrorNED (double aRange, double aBearing, double aRangeError, double aBearingError, double aErrorNED[3])
int WSF_EXPORT WsfUtil::TrackIdToInt (const WsfTrackId &aTrackId)
WsfTrackId WSF_EXPORT WsfUtil::IntToTrackId (int aIntTrackId)
void WSF_EXPORT WsfUtil::CovarianceToEllipse_2x2 (std::vector< double > &aMatrix, double &aSemiMajorAxis, double &aSemiMinorAxis, double &aBearingRad)
double WSF_EXPORT WsfUtil::BallisticPropagate (const UtVec3d &aLocationWCS, const UtVec3d &aVelocityWCS, double aStopAltitude, UtVec3d &aPropagatedLocationWCS, UtVec3d &aPropagatedVelocityWCS)
void WSF_EXPORT WsfUtil::MakeTrack (double aSimTime, WsfTrack &aTrack, WsfPlatform &aTarget, WsfPlatform &aSource)
 Fill a track with truth information on aTarget with aSource as the track source.
void WSF_EXPORT WsfUtil::GetErrorEstimateLLA_SpeedHeading (const WsfTrack &aTrack, unsigned short &aValidity, double &aStDevLat, double &aStDevLon, double &aStDevAlt, double &aStDevSpeed, double &aStDevHeading)
void WSF_EXPORT WsfUtil::PrintLLA (const std::string &aLabel, double aLocationWCS[3])
 Calls PrintLLA() for the LLA representation of aLocationWCS.
void WSF_EXPORT WsfUtil::PrintLLA (const std::string &aLabel, double aLat, double aLon, double aAlt)
void WSF_EXPORT WsfUtil::PrintLength (const std::string &aLabel, double aLength)
template<class T1, class T2>
double WsfUtil::SlantRange (T1 &aSource, T2 &aDest)
 Calculate the slant range distance from a source to a destination (second parameter is const).

Variables

static const unsigned short WsfUtil::cLLA_ERROR_VALID = 0x01
 Validity Masks associated with the "aValidity" parameter in the following method:
static const unsigned short WsfUtil::cSPEED_ERROR_VALID = 0x02
static const unsigned short WsfUtil::cHEADING_ERROR_VALID = 0x04
Copyrights Multiple, All Rights Reserved