geo_util.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'geo_util.h' is part of ERT - Ensemble based Reservoir Tool.
5
6 ERT 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 3 of the License, or
9 (at your option) any later version.
10
11 ERT is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
16 for more details.
17*/
18
19#ifndef ERT_GEO_UTIL_H
20#define ERT_GEO_UTIL_H
21
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26#include <stdbool.h>
27
28 typedef enum {
35
36 bool geo_util_inside_polygon__(const double * xlist , const double * ylist , int num_points , double x0 , double y0 , bool force_edge_inside);
37 bool geo_util_inside_polygon(const double * xlist , const double * ylist , int num_points , double x0 , double y0);
38 geo_util_xlines_status_enum geo_util_xlines( const double ** points , double * x0, double * y0 );
39 geo_util_xlines_status_enum geo_util_xsegments( const double ** points , double * x0, double * y0 );
40
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif
geo_util_xlines_status_enum geo_util_xlines(const double **points, double *x0, double *y0)
bool geo_util_inside_polygon(const double *xlist, const double *ylist, int num_points, double x0, double y0)
geo_util_xlines_status_enum geo_util_xsegments(const double **points, double *x0, double *y0)
bool geo_util_inside_polygon__(const double *xlist, const double *ylist, int num_points, double x0, double y0, bool force_edge_inside)
geo_util_xlines_status_enum
Definition: geo_util.hpp:28
@ GEO_UTIL_LINES_CROSSING
Definition: geo_util.hpp:29
@ GEO_UTIL_LINES_DEGENERATE
Definition: geo_util.hpp:32
@ GEO_UTIL_LINES_PARALLELL
Definition: geo_util.hpp:30
@ GEO_UTIL_LINES_OVERLAPPING
Definition: geo_util.hpp:31
@ GEO_UTIL_NOT_CROSSING
Definition: geo_util.hpp:33