GEOS 3.3.4

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

- File List

Triangle.h
1 /**********************************************************************
2 * $Id: Triangle.h 2556 2009-06-06 22:22:28Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2006 Refractions Research 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 #ifndef GEOS_GEOM_TRIANGLE_H
17 #define GEOS_GEOM_TRIANGLE_H
18
19 #include <geos/export.h>
20 #include <geos/geom/Coordinate.h>
21
22 #include <geos/inline.h>
23
24 namespace geos {
25 namespace geom { // geos::geom
26
32 class GEOS_DLL Triangle {
33 public:
34 Coordinate p0, p1, p2;
35
36 Triangle(const Coordinate& nP0, const Coordinate& nP1, const Coordinate& nP2)
37 :
38 p0(nP0),
39 p1(nP1),
40 p2(nP2)
41 {}
42
50 void inCentre(Coordinate& resultPoint);
51 };
52
53
54 } // namespace geos::geom
55 } // namespace geos
56
57 //#ifdef GEOS_INLINE
58 //# include "geos/geom/Triangle.inl"
59 //#endif
60
61 #endif // ndef GEOS_GEOM_TRIANGLE_H
62
63 /**********************************************************************
64 * $Log$
65 * Revision 1.2 2006/03/24 09:52:41 strk
66 * USE_INLINE => GEOS_INLINE
67 *
68 * Revision 1.1 2006/03/09 16:46:49 strk
69 * geos::geom namespace definition, first pass at headers split
70 *
71 **********************************************************************/