13 #ifndef CARMA_SERVICES_LENGTH_H
14 #define CARMA_SERVICES_LENGTH_H
44 Length(
double value,
const std::string& units);
101 #endif //CARMA_SERVICES_LENGTH_H
const Length operator+(const Length &length) const
Add two Lengths.
double meters() const
Convenience method to return value in meters.
double millimeters() const
Convenience method to return value in millimeters.
virtual ~Length()
Destructor.
const Length operator-(const Length &length) const
Subtract two Lengths.
Length & operator-=(const Length &frequency)
Decrement Length.
Length & operator+=(const Length &frequency)
Increment Length.
std::ostream & operator<<(std::ostream &os, const carma::services::Angle &angle)
Define the << operator to allow, e.g.
The Length class can represent a length in any units.
Length(double value, const std::string &units)
Construct an Length given a value and units.