13 #ifndef CARMA_SERVICES_VELOCITY_H
14 #define CARMA_SERVICES_VELOCITY_H
17 #include "carma/services/stringConstants.h"
53 const std::string& units,
182 #endif //CARMA_SERVICES_VELOCITY_H
static velocityFrameType translateFrame(const std::string &frame)
Translate a string representation of a velocity frame into a velocityFrame enumeration constant...
const Velocity operator-(const Velocity &velocity) const
Subtract two Velocities.
Representation of an angle, return values are always modulo 2PI radians.
void cotra_radio_lsr(Angle ra, Angle dec)
Converts velocity to FrameType=LSR and DefType=RADIO.
Velocity & operator+=(const Velocity &frequency)
Increment Velocity.
Radio definition: nu = nu0(1 - V/c)
Various type definitions for services classes.
The Velocity class can represent an velocity in any units.
Velocity & operator-=(const Velocity &frequency)
Decrement Velocity.
Velocity(double value, const std::string &units, velocityFrameType velFrame=FRAME_LSR, velocityDefType velDef=VEL_RADIO)
Construct an Velocity given a value and units.
velocityDefType getDefinition() const
Kinematic local standard of rest.
const Velocity operator+(const Velocity &velocity) const
Add two Velocities.
double kms() const
Convenience method to return km/s.
The Angle class can represent any angle in any units.
enum carma::services::velocityDefEnum velocityDefType
The Velocity Definition.
virtual ~Velocity()
Destructor.
velocityFrameType getFrame() const
double mph() const
Convenience method to return miles per hour.
std::ostream & operator<<(std::ostream &os, const carma::services::Angle &angle)
Define the << operator to allow, e.g.
enum carma::services::velocityFrameEnum velocityFrameType
The Velocity Frame.
static velocityDefType translateDefinition(const std::string &def)
Translate a string representation of a velocity definition into a velocityDef enumeration constant...