initial version
This commit is contained in:
16
geo/Units.h
Executable file
16
geo/Units.h
Executable file
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user