WSF
ZoneUtils Namespace Reference

Functions

static WsfGeoPoint convertEcsToGeoPoint (UtEntity &entity, const WsfZone::Point &point)
static bool PointIsInAngularExtents (WsfSimulation *sim_ptr, WsfZoneDefinition &zone, const WsfGeoPoint &point)
static double GetDistanceFromEllipseToPoint (WsfSimulation *sim_ptr, WsfZoneDefinition &zone, const WsfGeoPoint &point)
static bool RecalcCentroid (WsfSimulation *sim_ptr, const WsfZoneDefinition &zone, const WsfGeoPoint &relEcsCentroid, WsfGeoPoint &wcsCentroid)
WsfGeoPoint GetZoneCentroid (WsfSimulation *sim_ptr, WsfZoneDefinition &zone)
static bool FindIntersection (const WsfGeoPoint &beginPoint, const WsfGeoPoint &endPoint, const std::vector< WsfGeoPoint > &points, WsfGeoPoint &intersectionPoint, double &intersectDistance)
void GetLatLonPoints (WsfSimulation *sim_ptr, WsfZoneDefinition &zone, std::vector< WsfGeoPoint > &points)
bool GetDistanceFromPointToZone (WsfSimulation *sim_ptr, double wcsPoint[3], WsfZoneDefinition &zone, double &distance)
double GetDistanceFromPointToZoneCenter (WsfSimulation *sim_ptr, double wcsPoint[3], WsfZoneDefinition &zone)
static double GetHeading (double wcsPosition[3], double wcsVelocity[3])
static double GetExtraDistanceBasedOnShape (WsfZoneDefinition &zone)
bool isProjectedInsideZonePosVel (WsfSimulation *sim_ptr, WsfZoneDefinition &zone, double wcsPosition[3], double wcsVelocity[3])
static bool ValueSet (double val)
static bool WithinAltitudeBounds (WsfZoneDefinition &zone, double WcsPosition1[3], double WcsPosition2[3])
bool isProjectedInsideZone2Points (WsfSimulation *sim_ptr, WsfZoneDefinition &zone, double WcsPosition1[3], double WcsPosition2[3])
bool isProjectedInsideZonePointHeading (WsfSimulation *sim_ptr, WsfZoneDefinition &zone, double wcsPosition[3], double headingRadians)
bool GetClosestPointInZone (WsfSimulation *sim_ptr, double wcsPoint[3], double wcsZonePoint[3], WsfZoneDefinition &zone)

Function Documentation

◆ convertEcsToGeoPoint()

WsfGeoPoint ZoneUtils::convertEcsToGeoPoint ( UtEntity & entity,
const WsfZone::Point & point )
static

References WsfZone::Point::mX, and WsfZone::Point::mY.

Referenced by GetLatLonPoints().

◆ FindIntersection()

bool ZoneUtils::FindIntersection ( const WsfGeoPoint & beginPoint,
const WsfGeoPoint & endPoint,
const std::vector< WsfGeoPoint > & points,
WsfGeoPoint & intersectionPoint,
double & intersectDistance )
static

◆ GetClosestPointInZone()

◆ GetDistanceFromEllipseToPoint()

◆ GetDistanceFromPointToZone()

◆ GetDistanceFromPointToZoneCenter()

◆ GetExtraDistanceBasedOnShape()

◆ GetHeading()

double ZoneUtils::GetHeading ( double wcsPosition[3],
double wcsVelocity[3] )
static

References pos.

Referenced by isProjectedInsideZonePosVel().

◆ GetLatLonPoints()

◆ GetZoneCentroid()

◆ isProjectedInsideZone2Points()

◆ isProjectedInsideZonePointHeading()

◆ isProjectedInsideZonePosVel()

bool ZoneUtils::isProjectedInsideZonePosVel ( WsfSimulation * sim_ptr,
WsfZoneDefinition & zone,
double wcsPosition[3],
double wcsVelocity[3] )

◆ PointIsInAngularExtents()

◆ RecalcCentroid()

bool ZoneUtils::RecalcCentroid ( WsfSimulation * sim_ptr,
const WsfZoneDefinition & zone,
const WsfGeoPoint & relEcsCentroid,
WsfGeoPoint & wcsCentroid )
static

◆ ValueSet()

bool ZoneUtils::ValueSet ( double val)
static

References WsfZone::cUNSPECIFIED.

Referenced by WithinAltitudeBounds().

◆ WithinAltitudeBounds()

bool ZoneUtils::WithinAltitudeBounds ( WsfZoneDefinition & zone,
double WcsPosition1[3],
double WcsPosition2[3] )
static
Copyrights Multiple, All Rights Reserved