Table of Contents

Method ClampTo

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

ClampTo(PointD)

Clamps the current point's coordinates to the specified point's coordinates.

public readonly PointD ClampTo(PointD clampTo)

Parameters

clampTo PointD

The 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 clampTo point.

ClampTo(float, float)

Clamps the current point's coordinates to the specified minimum values.

public readonly PointD ClampTo(float clampX, float clampY)

Parameters

clampX float

The minimum allowable value for the X-coordinate.

clampY float

The minimum allowable value for the Y-coordinate.

Returns

PointD

A new PointD instance with the X and Y coordinates clamped to the specified minimum values.