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
14
15#ifndef C2DPOINT_H
16#define C2DPOINT_H
17/*===============================================================================================================================
18This file is part of CoastalME, the Coastal Modelling Environment.
19
20CoastalME 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.
21
22This 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.
23
24You 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.
25===============================================================================================================================*/
27{
28private:
30 double dX;
31
33 double dY;
34
35protected:
36
37public:
38 CGeom2DPoint(void);
39 CGeom2DPoint(double const, double const);
40
41 double dGetX(void) const;
42 double dGetY(void) const;
43 void SetX(double const);
44 void SetY(double const);
45// void SetXY(double const, double const);
46// void SetXY(CGeom2DPoint const*);
47
48 void operator= (CGeom2DPoint const*);
49 bool operator== (CGeom2DPoint const*) const;
50 bool operator== (CGeom2DPoint) const;
51 bool operator!= (CGeom2DPoint const*) const;
52 bool operator!= (CGeom2DPoint) const;
53};
54#endif // C2DPOINT_H
void SetY(double const)
The double parameter sets a value for the CGeom2DIPoint object's Y coordinate.
Definition 2d_point.cpp:58
void operator=(CGeom2DPoint const *)
Sets one CGeom2DPoint object equal to another.
Definition 2d_point.cpp:77
double dGetY(void) const
Returns the CGeom2DPoint object's double Y coordinate.
Definition 2d_point.cpp:46
double dGetX(void) const
Returns the CGeom2DPoint object's double X coordinate.
Definition 2d_point.cpp:40
CGeom2DPoint(void)
Constructor with no parameters (the X and Y coordinates of the CGeom2DPoint object are set to zero)
Definition 2d_point.cpp:26
double dY
The y coordinate.
Definition 2d_point.h:33
bool operator!=(CGeom2DPoint const *) const
Compares two CGeom2DPoint pointed-to objects for inequality.
Definition 2d_point.cpp:102
double dX
The x coordinate.
Definition 2d_point.h:30
bool operator==(CGeom2DPoint const *) const
Compares two CGeom2DPoint pointed-to objects for equality.
Definition 2d_point.cpp:84
void SetX(double const)
The double parameter sets a value for the CGeom2DIPoint object's X coordinate.
Definition 2d_point.cpp:52