Method ClampCoord
ClampCoord(double, double, double)
Returns coordinate value clamped to the inclusive range of min and max.
public static double ClampCoord(double v, double min, double max)
Parameters
vdoubleThe value to be clamped.
mindoubleThe lower bound of the result.
maxdoubleThe upper bound of the result.