core
vgl
vgl_convex.h
Go to the documentation of this file.
1
// This is core/vgl/vgl_convex.h
2
#ifndef vgl_convex_h_
3
#define vgl_convex_h_
4
//:
5
// \file
6
// \brief Functions such as convex hull, convex union, convexify polygon, ...
7
// \author Peter Vanroose
8
// \date 14 November 2003
9
10
#include <vector>
11
#ifdef _MSC_VER
12
# include <vcl_msvc_warnings.h>
13
#endif
14
#include <
vgl/vgl_point_2d.h
>
15
#include <
vgl/vgl_polygon.h
>
16
17
//: Return a single-sheet polygon which is the smallest one containing all given points
18
// \relatesalso vgl_polygon
19
template
<
class
T>
vgl_polygon<T>
vgl_convex_hull
(std::vector<
vgl_point_2d<T>
>
const
& points);
20
21
#endif // vgl_convex_h_
vgl_point_2d.h
a point in 2D nonhomogeneous space
vgl_polygon::vgl_convex_hull
vgl_polygon< T > vgl_convex_hull(std::vector< vgl_point_2d< T > > const &points)
Return a single-sheet polygon which is the smallest one containing all given points.
vgl_polygon.h
vgl_point_2d< T >
vgl_polygon
Store a polygon.
Definition:
vgl_area.h:6
Generated by
1.8.15