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

Merge branch 'mover_in_c++' of https://github.com/tmj-fstate/maszyna into tmj-fstate-mover_in_c++

This commit is contained in:
milek7
2017-11-03 20:31:20 +01:00
35 changed files with 442 additions and 467 deletions

View File

@@ -53,7 +53,7 @@ Type_
clamp_circular( Type_ Value, Type_ const Range = static_cast<Type_>(360) ) {
Value -= Range * (int)( Value / Range ); // clamp the range to 0-360
if( Value < 0.0 ) Value += Range;
if( Value < Type_(0) ) Value += Range;
return Value;
}