GEOS 3.11.1
Intersection.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2019 Paul Ramsey <pramsey@cleverlephant.ca>
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 <geos/geom/Coordinate.h>
19#include <geos/geom/CoordinateSequence.h>
20
21namespace geos {
22namespace algorithm { // geos::algorithm
23
45class GEOS_DLL Intersection {
46
47public:
48
49static geom::Coordinate intersection(const geom::Coordinate& p1, const geom::Coordinate& p2,
50 const geom::Coordinate& q1, const geom::Coordinate& q2);
51
52};
53
54
55} // namespace geos::algorithm
56} // namespace geos
57
Computes the intersection point of two lines. If the lines are parallel or collinear this case is det...
Definition: Intersection.h:45
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Basic namespace for all GEOS functionalities.
Definition: geos.h:39