Method ClampToMinMax
ClampToMinMax(PointD, PointD)
Clamps the current point's coordinates to the specified minimum and maximum bounds.
public readonly PointD ClampToMinMax(PointD min, PointD max)
Parameters
minPointDThe point representing the minimum allowable values for the coordinates. The X and Y values of this point define the lower bounds.
maxPointDThe point representing the maximum allowable values for the coordinates. The X and Y values of this point define the upper bounds.
Returns
Remarks
If the current point's coordinates are already within the specified bounds, the returned point will have the same coordinates as the current point.