Method ClampToZero
ClampToZero()
Clamps the coordinates of the current PointD instance to zero if they are less than zero.
public readonly PointD ClampToZero()
Returns
- PointD
A new PointD instance with the X and Y coordinates clamped to zero if they are less than zero.
Remarks
This method ensures that the resulting coordinates are non-negative by replacing any negative values with zero.