Class Cartesian#
Defined in File Coordinates.h
Class Documentation#
-
class Cartesian#
The Cartesian class.
Cartesian represents a tupel from the R² as cartesian coordinate.
Public Functions
-
inline Cartesian(double x = 0, double y = 0)#
-
Creates a cartesian coordinate from given x and y value.
- Parameters:
x – the x value
y – the y value
-
inline bool operator==(const Cartesian &rhs) const#
operator ==
Equal to operator checking for equality of x and y.
- Parameters:
rhs – the other Cartesian
- Returns:
if equal or not
-
inline const double &x() const#
x
Access function for this Cartesian’s x value as readonly.
- Returns:
a constant reference to this Cartesians x value
-
inline double &x()#
x
Access function for this Cartesian’s x value.
- Returns:
a reference to this Cartesians x value
-
inline Cartesian(double x = 0, double y = 0)#