question: private static double limit ( double value , double min , double max ) { value = Math . max ( value , min ) ; value = Math . min ( value , max ) ; return value ; }
target:  Limit the given double value with the given range.