/* * © Copyright 2014 – Urheberrechtshinweis * Alle Rechte vorbehalten / All Rights Reserved * * Programmcode ist urheberrechtlich geschuetzt. * Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner. * Keine Verwendung ohne explizite Genehmigung. * (vgl. § 106 ff UrhG / § 97 UrhG) */ #ifndef UNITS_H #define UNITS_H class Units { public: /** convert from m to cm */ template static inline T mToCm(const T m) {return m * 100;} /** convert from cm to m */ template static inline T cmToM(const T cm) {return cm / 100;} }; #endif // UNITS_H