MathUtilities.

Clamp(double, double, double) Method

Summary

Clamps a value between a minimum and maximum value.
Namespace
Avalonia.Utilities
Containing Type
MathUtilities

Syntax

public static double Clamp(double val, double min, double max)

Parameters

Name Type Description
val double The value.
min double The minimum value.
max double The maximum value.

Return Value

Type Description
double The clamped value.