13 #ifndef CARMA_SERVICES_DISTANCE_H
14 #define CARMA_SERVICES_DISTANCE_H
52 Distance(
double value,
const std::string& units);
83 bool isInfinite()
const;
124 #endif //CARMA_SERVICES_DISTANCE_H
const Angle getParallax() const
Get the equivalent trigonometric parallax for this distance.
const Distance operator+(const Distance &distance) const
Add two Distances.
Representation of an angle, return values are always modulo 2PI radians.
Distance & operator-=(const Distance &distance)
Decrement Distance.
const Distance operator-(const Distance &distance) const
Subtract two Distances.
The Distance class can represent an distance in any units.
Representation of Length in any units.
The Angle class can represent any angle in any units.
Distance & operator+=(const Distance &distance)
Increment Distance.
virtual ~Distance()
Destructor.
static Distance getDistance(const Angle ¶llax)
Given an parallax angle, return the equivalent distance.
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.
Distance(double value, const std::string &units)
Construct an Distance given a value and units.