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
vdoubleThe value to be clamped.
mindoubleThe lower bound of the result.
maxdoubleThe upper bound of the result.