 Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="clamp(double, double, double)"><!-- --></A><H3>
clamp</H3>
<PRE>
public static double <B>clamp</B>(double&nbsp;x,
                           double&nbsp;min,
                           double&nbsp;max)</PRE>
<DL>
<DD>Clamps a value to a given range.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the value to clamp<DD><CODE>min</CODE> - the minimum value of the range<DD><CODE>max</CODE> - the maximum value of the range
<DT><B>Returns:</