WSF
WsfConvexHull.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11//*
12//* PURPOSE:
13//* The WsfConvexHull class is used to find the convex hull of a given
14//* WsfTrackList, list of WsfGeoPoint, or list of UtVec2d.
15//*
16//***************************************************************************
17
18#ifndef WSFCONVEXHULL_HPP
19#define WSFCONVEXHULL_HPP
20
21#include "wsf_export.h"
22
23#include <vector>
24
25#include "UtVec2.hpp"
26#include "WsfGeoPoint.hpp"
27#include "WsfTrackList.hpp"
28
30{
31public:
32 // uses the latitude & longitude of the tracks to compute the convex hull
33 static WsfTrackList* ConvexHull(WsfTrackList& aList);
34 // uses the latitude & longitude of the points to compute the convex hull
35 static std::vector<WsfGeoPoint> ConvexHull(std::vector<WsfGeoPoint>& aList);
36 // computes a convex hull
37 static std::vector<UtVec2d> ConvexHull(std::vector<UtVec2d>& aList);
38};
39
40#endif
WsfTrackListT< WsfTrack > WsfTrackList
Definition WsfTrackList.hpp:88
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfConvexHull.hpp:30
static WsfTrackList * ConvexHull(WsfTrackList &aList)
Definition WsfConvexHull.cpp:28
Copyrights Multiple, All Rights Reserved