CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
|
Geometry class used to represent 2D point objects with floating-point coordinates. More...
#include <2d_point.h>
Public Member Functions | |
CGeom2DPoint (void) | |
Constructor with no parameters (the X and Y coordinates of the CGeom2DPoint object are set to zero) | |
CGeom2DPoint (double const, double const) | |
Constructor with two double parameters, for the X and Y coordinates of the CGeom2DPoint object. | |
double | dGetX (void) const |
Returns the CGeom2DPoint object's double X coordinate. | |
double | dGetY (void) const |
Returns the CGeom2DPoint object's double Y coordinate. | |
void | SetX (double const) |
The double parameter sets a value for the CGeom2DIPoint object's X coordinate. | |
void | SetY (double const) |
The double parameter sets a value for the CGeom2DIPoint object's Y coordinate. | |
void | operator= (CGeom2DPoint const *) |
Sets one CGeom2DPoint object equal to another. | |
bool | operator== (CGeom2DPoint const *) const |
Compares two CGeom2DPoint pointed-to objects for equality. | |
bool | operator== (CGeom2DPoint) const |
Compares two CGeom2DPoint objects for equality. | |
bool | operator!= (CGeom2DPoint const *) const |
Compares two CGeom2DPoint pointed-to objects for inequality. | |
bool | operator!= (CGeom2DPoint) const |
Compares two CGeom2DPoint objects for inequality. | |
Private Attributes | |
double | dX |
The x coordinate. | |
double | dY |
The y coordinate. | |
Geometry class used to represent 2D point objects with floating-point coordinates.
The CGeom2DPoint geometry class is used to represent 2D points where the x and y coordinates are floating-point values
Definition at line 26 of file 2d_point.h.
CGeom2DPoint::CGeom2DPoint | ( | void | ) |
Constructor with no parameters (the X and Y coordinates of the CGeom2DPoint object are set to zero)
Definition at line 26 of file 2d_point.cpp.
Referenced by operator!=(), operator!=(), operator=(), operator==(), and operator==().
CGeom2DPoint::CGeom2DPoint | ( | double const | dNewX, |
double const | dNewY ) |
Constructor with two double parameters, for the X and Y coordinates of the CGeom2DPoint object.
Definition at line 33 of file 2d_point.cpp.
double CGeom2DPoint::dGetX | ( | void | ) | const |
Returns the CGeom2DPoint object's double X coordinate.
Definition at line 40 of file 2d_point.cpp.
Referenced by CSimulation::bIsWithinPolygon(), CSimulation::bWriteVectorGISFile(), CSimulation::CalcCoastTangents(), CSimulation::dGetDistanceBetween(), CSimulation::dTriangleAreax2(), CSimulation::nCalcPotentialPlatformErosionOnProfile(), CSimulation::nCheckAllProfiles(), CSimulation::nCreateProfile(), CSimulation::nGetCoastNormalEndPoint(), operator!=(), operator!=(), operator=(), operator==(), operator==(), CSimulation::PtAverage(), CSimulation::PtChooseEndPoint(), CSimulation::PtGetPerpendicular(), and CSimulation::PtiExtCRSToGridRound().
double CGeom2DPoint::dGetY | ( | void | ) | const |
Returns the CGeom2DPoint object's double Y coordinate.
Definition at line 46 of file 2d_point.cpp.
Referenced by CSimulation::bIsWithinPolygon(), CSimulation::bWriteVectorGISFile(), CSimulation::CalcCoastTangents(), CSimulation::dGetDistanceBetween(), CSimulation::dTriangleAreax2(), CSimulation::nCalcPotentialPlatformErosionOnProfile(), CSimulation::nCheckAllProfiles(), CSimulation::nCreateProfile(), CSimulation::nGetCoastNormalEndPoint(), operator!=(), operator!=(), operator=(), operator==(), operator==(), CSimulation::PtAverage(), CSimulation::PtChooseEndPoint(), CSimulation::PtGetPerpendicular(), and CSimulation::PtiExtCRSToGridRound().
bool CGeom2DPoint::operator!= | ( | CGeom2DPoint const * | pPt | ) | const |
Compares two CGeom2DPoint pointed-to objects for inequality.
Definition at line 102 of file 2d_point.cpp.
bool CGeom2DPoint::operator!= | ( | CGeom2DPoint | Pt | ) | const |
Compares two CGeom2DPoint objects for inequality.
Definition at line 111 of file 2d_point.cpp.
void CGeom2DPoint::operator= | ( | CGeom2DPoint const * | pPt | ) |
Sets one CGeom2DPoint object equal to another.
Definition at line 77 of file 2d_point.cpp.
bool CGeom2DPoint::operator== | ( | CGeom2DPoint const * | pPt | ) | const |
Compares two CGeom2DPoint pointed-to objects for equality.
Definition at line 84 of file 2d_point.cpp.
bool CGeom2DPoint::operator== | ( | CGeom2DPoint | Pt | ) | const |
Compares two CGeom2DPoint objects for equality.
Definition at line 93 of file 2d_point.cpp.
void CGeom2DPoint::SetX | ( | double const | dNewX | ) |
The double parameter sets a value for the CGeom2DIPoint object's X coordinate.
Definition at line 52 of file 2d_point.cpp.
Referenced by CSimulation::CreateRasterizedProfile(), CSimulation::nCreateProfile(), CSimulation::nDoCliffCollapseDeposition(), CSimulation::nGetCoastNormalEndPoint(), CSimulation::PtChooseEndPoint(), and CSimulation::PtGetPerpendicular().
void CGeom2DPoint::SetY | ( | double const | dNewY | ) |
The double parameter sets a value for the CGeom2DIPoint object's Y coordinate.
Definition at line 58 of file 2d_point.cpp.
Referenced by CSimulation::CreateRasterizedProfile(), CSimulation::nCreateProfile(), CSimulation::nDoCliffCollapseDeposition(), CSimulation::nGetCoastNormalEndPoint(), CSimulation::PtChooseEndPoint(), and CSimulation::PtGetPerpendicular().
|
private |
The x coordinate.
Definition at line 30 of file 2d_point.h.
Referenced by CGeom2DPoint(), CGeom2DPoint(), dGetX(), operator!=(), operator!=(), operator=(), operator==(), operator==(), and SetX().
|
private |
The y coordinate.
Definition at line 33 of file 2d_point.h.
Referenced by CGeom2DPoint(), CGeom2DPoint(), dGetY(), operator!=(), operator!=(), operator=(), operator==(), operator==(), and SetY().