"Fossies" - the Fresh Open Source Software Archive

Member "saga-9.0.2/saga-gis/src/tools/terrain_analysis/ta_cliffmetrics/CliffMetrics/2d_point.h" (25 May 2023, 2046 Bytes) of package /linux/misc/saga-9.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*!
    2  *
    3  * \class C2DPoint
    4  * \brief Class used to represent 2D point objects with floating-point co-ordinates
    5  * \details The C2DPoint class is used to represent 2D points where the x and y co-ordinates are floating-point values, e.g. points for which the x and y co-ordinates are in the external CRS (co-ordinate reference system)
    6  * \author David Favis-Mortlock
    7  * \author Andres Payo
    8  * \author Jim Hall
    9  * \date 2017
   10  * \copyright GNU General Public License
   11  *
   12  * \file 2dpoint.h
   13  * \brief Contains C2DPoint definitions
   14  *
   15  */
   16 
   17 #ifndef C2DPOINT_H
   18 #define C2DPOINT_H
   19 /*===============================================================================================================================
   20 
   21  This file is part of CliffMetrics, the Coastal Modelling Environment.
   22 
   23  CliffMetrics is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
   24 
   25  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   26 
   27  You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   28 
   29 ===============================================================================================================================*/
   30 class C2DPoint
   31 {
   32 private:
   33    double dX, dY;
   34 
   35 public:
   36    C2DPoint(void);
   37    C2DPoint(double const, double const);
   38    double dGetX(void) const;
   39    double dGetY(void) const;
   40    void SetX(double const);
   41    void SetY(double const);
   42 //    void SetXY(double const, double const);
   43 //    void SetXY(C2DPoint const*);
   44    void operator= (C2DPoint*);
   45 //    bool operator== (C2DPoint*) const;
   46    bool operator== (C2DPoint*) const;
   47    bool operator!= (C2DPoint*) const;
   48 };
   49 #endif // C2DPOINT_H