53 Degree::operator double() const noexcept
189 :
angle_(static_cast<int>(round(static_cast<double>(angle) * 10.)))
191 if ((
angle_ / 10.) != round(static_cast<double>(angle) * 10.) / 10.)
193 throw std::overflow_error(
"Degree cannot be converted to PSENscanInternalAngle.");
202 PSENscanInternalAngle::operator int() const noexcept
bool operator==(const Degree &rhs) const
Compare a Degree object with another Degree object.
Degree operator*(const double &rhs)
Multiply a Degree object by a double precision floating point number.
bool operator>(const PSENscanInternalAngle &rhs) const
Compare a PSENscanInternalAngle object with another PSENscanInternalAngle object. ...
Degree & operator*=(const double &rhs)
Define multiplying a Degree object by a double precision floating point number.
Class to model angles in degrees from user's perspective.
bool operator>(const Degree &rhs) const
Compare a Degree object with another Degree object.
Degree & operator-=(const Degree &rhs)
Define subtracting a Degree object by another Degree.
Degree operator-()
Unary Minus Operator switches the sign of the angle.
PSENscanInternalAngle(const PSENscanInternalAngle &angle)
Construct a new PSENscanInternalAngle::PSENscanInternalAngle object from another PSENscanInternalAngl...
PSENscanInternalAngle operator-=(const PSENscanInternalAngle &rhs)
Define subtracting a PSENscanInternalAngle object by another PSENscanInternalAngle.
bool operator!=(const PSENscanInternalAngle &rhs) const
Compare a PSENscanInternalAngle object with another PSENscanInternalAngle object. ...
PSENscanInternalAngle operator+(const PSENscanInternalAngle &rhs) const
Add a PSENscanInternalAngle object to another PSENscanInternalAngle.
bool operator<=(const PSENscanInternalAngle &rhs) const
Compare a PSENscanInternalAngle object with another PSENscanInternalAngle object. ...
friend std::ostream & operator<<(std::ostream &os, const PSENscanInternalAngle °)
Define how PSENscanInternalAngle should behave with stream operator.
Degree(const Degree &angle)
Construct a new Degree:: Degree object from another Degree object.
friend std::ostream & operator<<(std::ostream &os, const Degree °)
Define how Degree should behave with stream operator.
bool operator<(const Degree &rhs) const
Compare a Degree object with another Degree object.
PSENscanInternalAngle operator-()
Unary Minus Operator to switch the sign of the Degree.
PSENscanInternalAngle operator+=(const PSENscanInternalAngle &rhs)
Define adding a PSENscanInternalAngle object to another PSENscanInternalAngle.
bool operator<(const PSENscanInternalAngle &rhs) const
Compare a PSENscanInternalAngle object with another PSENscanInternalAngle object. ...
Class to model angles in PSENscan internal format (tenth of degrees)
bool operator>=(const PSENscanInternalAngle &rhs) const
Compare a PSENscanInternalAngle object with another PSENscanInternalAngle object. ...
bool operator==(const PSENscanInternalAngle &rhs) const
Compare a PSENscanInternalAngle object with another PSENscanInternalAngle object. ...