X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FMathLib.java;h=b7eaeb7cb6ae0c36a7cee9c30b770a26253d5d78;hp=a57b5ce7efa4aa3f8d02f040652dd450485f3d4a;hb=33141cddfe931d276b0068687c9bac25f29f8ba5;hpb=cb5ed50df54d254d02fbce44d2b37ca32b74ea69 diff --git a/src/org/usfirst/frc/team3501/robot/MathLib.java b/src/org/usfirst/frc/team3501/robot/MathLib.java index a57b5ce7..b7eaeb7c 100644 --- a/src/org/usfirst/frc/team3501/robot/MathLib.java +++ b/src/org/usfirst/frc/team3501/robot/MathLib.java @@ -57,7 +57,7 @@ public class MathLib { * the largest acceptable value. * @return returns value restricted to be within the range [low, high]. */ - public static double restrictToRange(double value, double low, double high) { + public static double constrain(double value, double low, double high) { value = Math.max(value, low); value = Math.min(value, high); return value; @@ -65,7 +65,7 @@ public class MathLib { /*** * Returns true if val is in the range [low, high] - * + * * @param val * value to test * @param low