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
v
doubleThe value to be clamped.
min
doubleThe lower bound of the result.
max
doubleThe upper bound of the result.