16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 10:29:19 +02:00

Merge branch 'tmj-dev' into milek-dev

This commit is contained in:
milek7
2018-07-17 16:20:11 +02:00
77 changed files with 2959 additions and 2171 deletions

View File

@@ -229,6 +229,13 @@ clamp_circular( Type_ Value, Type_ const Range = static_cast<Type_>(360) ) {
return Value;
}
template <typename Type_>
Type_
quantize( Type_ const Value, Type_ const Step ) {
return ( Step * std::round( Value / Step ) );
}
template <typename Type_>
Type_
min_speed( Type_ const Left, Type_ const Right ) {