Method ClampD
ClampD(double, double, double)
Returns double value clamped to the inclusive range of min and max.
public static double ClampD(double v, double min, double max)
Parameters
v
doubleThe value to be clamped.
min
doubleThe lower bound of the result.
max
doubleThe upper bound of the result.