CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
2d_point.h
Go to the documentation of this file.
1
12
13#ifndef C2DPOINT_H
14#define C2DPOINT_H
15/* ===============================================================================================================================
16 This file is part of CoastalME, the Coastal Modelling Environment.
17
18 CoastalME 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.
19
20 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.
21
22 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.
23===============================================================================================================================*/
25{
26 private:
28 double dX;
29
31 double dY;
32
33 protected:
34 public:
35 CGeom2DPoint(void);
36 explicit CGeom2DPoint(CGeom2DPoint const*);
37 CGeom2DPoint(double const, double const);
38
39 double dGetX(void) const;
40 double dGetY(void) const;
41 void SetX(double const);
42 void SetY(double const);
43 // void SetXY(double const, double const);
44 // void SetXY(CGeom2DPoint const*);
45
47 bool operator==(CGeom2DPoint const*) const;
48 bool operator==(CGeom2DPoint) const;
49 bool operator!=(CGeom2DPoint const*) const;
50 bool operator!=(CGeom2DPoint) const;
51};
52#endif // C2DPOINT_H
void SetY(double const)
The double parameter sets a value for the CGeom2DIPoint object's Y coordinate.
Definition 2d_point.cpp:63
double dGetY(void) const
Returns the CGeom2DPoint object's double Y coordinate.
Definition 2d_point.cpp:51
double dGetX(void) const
Returns the CGeom2DPoint object's double X coordinate.
Definition 2d_point.cpp:45
CGeom2DPoint & operator=(CGeom2DPoint const *)
Sets one CGeom2DPoint object equal to another.
Definition 2d_point.cpp:81
CGeom2DPoint(void)
Constructor with no parameters (the X and Y coordinates of the new CGeom2DPoint object are set to zer...
Definition 2d_point.cpp:24
double dY
The y coordinate.
Definition 2d_point.h:31
bool operator!=(CGeom2DPoint const *) const
Compares two CGeom2DPoint pointed-to objects for inequality.
Definition 2d_point.cpp:107
double dX
The x coordinate.
Definition 2d_point.h:28
bool operator==(CGeom2DPoint const *) const
Compares two CGeom2DPoint pointed-to objects for equality.
Definition 2d_point.cpp:89
void SetX(double const)
The double parameter sets a value for the CGeom2DIPoint object's X coordinate.
Definition 2d_point.cpp:57