This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/geo/Units.h
2016-01-21 11:10:55 +01:00

17 lines
289 B
C++
Executable File

#ifndef UNITS_H
#define UNITS_H
class Units {
public:
/** convert from m to cm */
template <typename T> static inline T mToCm(const T m) {return m * 100;}
/** convert from cm to m */
template <typename T> static inline T cmToM(const T cm) {return cm / 100;}
};
#endif // UNITS_H