GEOS
3.15.0dev
include
geos
operation
grid
Crossing.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2018-2025 ISciences, LLC
7
*
8
* This is free software; you can redistribute and/or modify it under
9
* the terms of the GNU Lesser General Public Licence as published
10
* by the Free Software Foundation.
11
* See the COPYING file for more information.
12
*
13
**********************************************************************/
14
15
#pragma once
16
17
#include <geos/geom/Coordinate.h>
18
#include <geos/operation/grid/Side.h>
19
20
namespace
geos::operation::grid {
21
22
class
Crossing
23
{
24
public
:
25
Crossing(Side s,
double
x,
double
y)
26
: m_side{ s }
27
, m_coord{ x, y }
28
{
29
}
30
31
Crossing(Side s,
const
geom::CoordinateXY& c)
32
: m_side{ s }
33
, m_coord{ c }
34
{
35
}
36
37
const
Side& getSide()
const
38
{
39
return
m_side;
40
}
41
42
const
geom::CoordinateXY& getCoord()
const
43
{
44
return
m_coord;
45
}
46
47
private
:
48
Side m_side;
49
geom::CoordinateXY m_coord;
50
};
51
52
}
Generated by
1.9.8