Class Polar#
Defined in File Coordinates.h
Class Documentation#
-
class Polar#
Polar coordinate representation.
Polar represents a tupel from C in polar coordinate form.
- Authors
beyss, stratmann
- Date
03.07.2018
Public Functions
-
inline Polar(double radius = 0, Angle angle = 0)#
Creates a Polar coordinate from a given radius and angle.
- Parameters:
r – the radius
phi – the angle
-
inline bool operator==(const Polar &rhs) const#
Equal to operator checking for equality of radius and angle.
- Parameters:
rhs – the other Polar
- Returns:
if equal or not
-
inline const double &radius() const#
Access function for this Polar’s radius as readonly.
- Returns:
a constant reference to this Polar’s radius
-
inline double &radius()#
Access function for this Polar’s radius.
- Returns:
a reference to this Polar’s radius