-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis.h
42 lines (31 loc) · 855 Bytes
/
analysis.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
Analysis methos for GEOS wrapper
*/
#ifndef RGEO_GEOS_ANALYSIS_INCLUDED
#define RGEO_GEOS_ANALYSIS_INCLUDED
#include <ruby.h>
#ifdef RGEO_GEOS_SUPPORTED
#include "factory.h"
RGEO_BEGIN_C
/*
* call-seq:
* RGeo::Geos::Analysis.ccw? -> true or false
*
* Checks direction for a ring, returns +true+ if counter-clockwise, +false+
* otherwise.
*/
#ifdef RGEO_GEOS_SUPPORTS_CCW
VALUE rgeo_geos_analysis_ccw_p(VALUE self, VALUE ring);
#endif // RGEO_GEOS_SUPPORTS_CCW
/**
* call-seq:
* RGeo::Geos::Analysis.ccw_supported? -> true or false
*
* Checks if the RGEO_GEOS_SUPPORTS_ISCCW macro is defined, returns +true+
* if it is, +false+ otherwise
*/
VALUE rgeo_geos_analysis_supports_ccw(VALUE self);
void rgeo_init_geos_analysis(RGeo_Globals* globals);
RGEO_END_C
#endif // RGEO_GEOS_SUPPORTED
#endif // RGEO_GEOS_ANALYSIS_INCLUDED