GEOS 3.15.0dev
SplitGeometryAtVertex.h
1/**********************************************************************
2*
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2026 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/export.h>
18#include <memory>
19#include <utility>
20
21// Forward declarations
22namespace geos::geom {
23class CircularString;
24class LineString;
25class SimpleCurve;
26}
27
28namespace geos::operation::split {
29
30class GEOS_DLL SplitGeometryAtVertex {
31
32public:
33 static std::pair<std::unique_ptr<geom::SimpleCurve>, std::unique_ptr<geom::SimpleCurve>>
34 splitSimpleCurveAtVertex(const geom::SimpleCurve& sc, std::size_t i);
35
36 static std::pair<std::unique_ptr<geom::LineString>, std::unique_ptr<geom::LineString>>
37 splitLineStringAtVertex(const geom::LineString& ls, std::size_t i);
38
39 static std::pair<std::unique_ptr<geom::CircularString>, std::unique_ptr<geom::CircularString>>
40 splitCircularStringAtVertex(const geom::CircularString& cs, std::size_t i);
41};
42
43}
Definition Angle.h:26