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

- File List

# Triangle.h

    00001 /**********************************************************************
    00002  * $Id: Triangle.h 2556 2009-06-06 22:22:28Z strk $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2006 Refractions Research Inc.
    00008  *
    00009  * This is free software; you can redistribute and/or modify it under
    00010  * the terms of the GNU Lesser General Public Licence as published
    00011  * by the Free Software Foundation.
    00012  * See the COPYING file for more information.
    00013  *
    00014  **********************************************************************/
    00015
    00016 #ifndef GEOS_GEOM_TRIANGLE_H
    00017 #define GEOS_GEOM_TRIANGLE_H
    00018
    00019 #include <geos/export.h>
    00020 #include <geos/geom/Coordinate.h>
    00021
    00022 #include <geos/inline.h>
    00023
    00024 namespace geos {
    00025 namespace geom { // geos::geom
    00026
    00032 class GEOS_DLL Triangle {
    00033 public:
    00034         Coordinate p0, p1, p2;
    00035
    00036         Triangle(const Coordinate& nP0, const Coordinate& nP1, const Coordinate& nP2)
    00037                 :
    00038                 p0(nP0),
    00039                 p1(nP1),
    00040                 p2(nP2)
    00041         {}
    00042
    00050         void inCentre(Coordinate& resultPoint);
    00051 };
    00052
    00053
    00054 } // namespace geos::geom
    00055 } // namespace geos
    00056
    00057 //#ifdef GEOS_INLINE
    00058 //# include "geos/geom/Triangle.inl"
    00059 //#endif
    00060
    00061 #endif // ndef GEOS_GEOM_TRIANGLE_H
    00062
    00063 /**********************************************************************
    00064  * $Log$
    00065  * Revision 1.2  2006/03/24 09:52:41  strk
    00066  * USE_INLINE => GEOS_INLINE
    00067  *
    00068  * Revision 1.1  2006/03/09 16:46:49  strk
    00069  * geos::geom namespace definition, first pass at headers split
    00070  *
    00071  **********************************************************************/