Back to project page FlangeAssist.
The source code is released under:
MIT License
If you think the Android project FlangeAssist listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.atasoft.helpers; /* w w w . j a v a2 s .c o m*/ public class AtaMathUtils { public static final float bracketFloat(float value, float lower, float upper){ if(upper < lower) return 0f; if(value > upper) return upper; if(value < lower) return lower; return value;} public static double bracketDouble(double value, double lower, double upper){ if(upper < lower) return 0d; if(value > upper) return upper; if(value < lower) return lower; return value; } }