Method ClampTo
ClampTo(PointD)
Clamps the current point's coordinates to the specified point's coordinates.
public readonly PointD ClampTo(PointD clampTo)
Parameters
clampToPointDThe point whose coordinates define the minimum values for clamping.
Returns
- PointD
A new PointD instance where the X and Y coordinates are clamped to the corresponding X and Y coordinates of the
clampTopoint.
ClampTo(float, float)
Clamps the current point's coordinates to the specified minimum values.
public readonly PointD ClampTo(float clampX, float clampY)
Parameters
clampXfloatThe minimum allowable value for the X-coordinate.
clampYfloatThe minimum allowable value for the Y-coordinate.