Home | Develop | Download | Contact
FuncConvexHull.hpp
1/*
2 * FuncConvexHull.hpp
3 *
4 * Copyright 2018 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 *
21 */
22
33#ifndef __PDS_CONVEXHULLFUNC_HPP__
34#define __PDS_CONVEXHULLFUNC_HPP__
35
36
49#include <Pds/Vector>
50#include <Pds/Matrix>
51
52namespace Pds{
53
54namespace ConvexHull{
55
73 std::vector<Pds::Point2D> IncrementalAlgorithm(const std::vector<Pds::Point2D> &P);
74
109 bool IsInside(const std::vector<Pds::Point2D> &P,const Pds::Point2D &Pi);
110
120 std::vector<bool> IsInside( const std::vector<Pds::Point2D> &P,
121 const std::vector<Pds::Point2D> &Pi);
122
123
134 const Pds::Matrix &Pi);
140} //ConvexHull
141}
146#endif
147
La clase tipo Pds::Matrix . Esta clase genera una matriz de Nlin lineas y Ncol columnas....
Definition: Matrix.hpp:96
La clase tipo Pds::Point2D . Esta clase genera un objeto con dos parametros X y Y....
Definition: Point2D.hpp:59
La clase tipo Pds::Vector . Esta clase genera una matriz de Nlin lineas y 1 columna....
Definition: Vector.hpp:80
const double Pi
Número PI.
Definition: RaDefines.hpp:189
std::vector< Pds::Point2D > IncrementalAlgorithm(const std::vector< Pds::Point2D > &P)
Retorna un conjunto ordenado de posiciones las cuales describen la Convex Hull (Envolvente convexa)
bool IsInside(const std::vector< Pds::Point2D > &P, const Pds::Point2D &Pi)
Retorna si un punto está adentro o afuera de una Convex Hull.
Nombre de espacio para Pds (Procesamiento Digital de Senales)
Definition: AbstractRV.hpp:42

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed