1 #ifndef GCP_UTIL_LENGTH_H
2 #define GCP_UTIL_LENGTH_H
14 #include "gcp/util/common/ConformableQuantity.h"
29 static const unsigned cmPerMeter_;
30 static const unsigned cmPerKm_;
31 static const unsigned micronsPerCm_;
33 static const double metersPerMile_;
34 static const double cmPerMile_;
62 void setMeters(
double m)
67 void setKilometers(
double km)
79 inline double meters()
const {
80 return cm_ / cmPerMeter_;
83 inline double kilometers()
const {
84 return cm_ / cmPerKm_;
128 #endif // End #ifndef GCP_UTIL_LENGTH_H
double centimeters() const
Definition: Length.h:75
friend std::ostream & operator<<(std::ostream &os, Length &length)
Definition: Length.cc:90
double operator/(Length &length)
Definition: Length.cc:72
void setCentimeters(double cm)
Definition: Length.h:56
Length()
Definition: Length.cc:21
virtual ~Length()
Definition: Length.cc:47
Length operator-(Length &length)
Definition: Length.cc:62
Length operator+(Length &length)
Definition: Length.cc:52
Length operator*(double multFac)
Definition: Length.cc:80