APM:Libraries
polygon.h
Go to the documentation of this file.
1 /*
2  * polygon.h
3  * Copyright (C) Andrew Tridgell 2011
4  *
5  * This file is free software: you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This file is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  * See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 #pragma once
19 
20 #include "vector2.h"
21 
22 template <typename T>
23 bool Polygon_outside(const Vector2<T> &P, const Vector2<T> *V, unsigned n);
24 template <typename T>
25 bool Polygon_complete(const Vector2<T> *V, unsigned n);
26 
bool Polygon_outside(const Vector2< T > &P, const Vector2< T > *V, unsigned n)
Definition: polygon.cpp:38
bool Polygon_complete(const Vector2< T > *V, unsigned n)
Definition: polygon.cpp:86