GEOS 3.4.2

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

Triangle.h
1 /**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
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 #ifndef GEOS_GEOM_TRIANGLE_H
16 #define GEOS_GEOM_TRIANGLE_H
17
18 #include <geos/export.h>
19 #include <geos/geom/Coordinate.h>
20
21 #include <geos/inline.h>
22
23 namespace geos {
24 namespace geom { // geos::geom
25
31 class GEOS_DLL Triangle {
32 public:
33 Coordinate p0, p1, p2;
34
35 Triangle(const Coordinate& nP0, const Coordinate& nP1, const Coordinate& nP2)
36 :
37 p0(nP0),
38 p1(nP1),
39 p2(nP2)
40 {}
41
49 void inCentre(Coordinate& resultPoint);
50 };
51
52
53 } // namespace geos::geom
54 } // namespace geos
55
56 //#ifdef GEOS_INLINE
57 //# include "geos/geom/Triangle.inl"
58 //#endif
59
60 #endif // ndef GEOS_GEOM_TRIANGLE_H