GEOS
3.12.0
include
geos
geom
Position.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2005-2006 Refractions Research Inc.
7
* Copyright (C) 2001-2002 Vivid Solutions Inc.
8
*
9
* This is free software; you can redistribute and/or modify it under
10
* the terms of the GNU Lesser General Public Licence as published
11
* by the Free Software Foundation.
12
* See the COPYING file for more information.
13
*
14
**********************************************************************
15
*
16
* Last port: geom/Position.java rev. 1.4 (JTS-1.10)
17
*
18
**********************************************************************/
19
20
21
#pragma once
22
23
#include <geos/export.h>
24
#include <map>
25
#include <vector>
26
#include <string>
27
28
29
30
namespace
geos
{
31
namespace
geom {
// geos.geom
32
37
class
GEOS_DLL
Position
{
38
public
:
39
enum
{
44
ON = 0,
45
50
LEFT
,
51
56
RIGHT
57
};
58
63
static
int
opposite
(
int
position);
64
};
65
66
}
// namespace geos.geom
67
}
// namespace geos
68
geos::geom::Position::opposite
static int opposite(int position)
Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.
geos
Basic namespace for all GEOS functionalities.
Definition:
Angle.h:25
geos::geom::Position::LEFT
@ LEFT
An indicator that a Location is to the left of a GraphComponent.
Definition:
Position.h:50
geos::geom::Position
A Position indicates the position of a Location relative to a graph component (Node,...
Definition:
Position.h:37
Generated by
1.8.20