TheBoussinesqModel  3.2.1
 All Data Structures Files Functions Variables Typedefs Macros Pages
geometry_utilities.h
Go to the documentation of this file.
1 
2 /* BGEOMETRY BUILDS THE MESH FROM A RASTER FOR THE BOUSSINESQ MODEL
3 KeyPalette Version 0.9375 KMackenzie
4 
5 file geometry_utilities.h
6 
7 Copyright, 2009 Emanuele Cordano and Riccardo Rigon
8 
9 This file is part of BGEOMETRY.
10  BGEOMETRY is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  BGEOMETRY is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23 
24 int signum (long a);
25 
26 double area2d(POINT *P1,POINT *P2, POINT *P3);
27 
28 int check_3_numbers(long a, long b, long c);
29 
30 int check_vertex_intersection_2_lines(long b1,long e1,long b2,long e2);
31 
32 long query_freq_longvector(LONGVECTOR *lvector,long value);
33 
35 
36 int signum_double (double a);
37 
38 double distance2D(POINT *P1,POINT *P2);
39 
40 long shared_edges(POLYGON *PO1, POLYGON *PO2, long no_intersection, long *l_po1, long *l_po2, double *dist_centroids);