Quad.Clamp Method
Clamps a value to an inclusive minimum and maximum value.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The result of clamping value to the inclusive range of min and max.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Quad Clamp(
Quad value,
Quad min,
Quad max
)
Parameters
- value Quad
- The value to clamp.
- min Quad
- The inclusive minimum to which value should clamp.
- max Quad
- The inclusive maximum to which value should clamp.
Return Value
QuadThe result of clamping value to the inclusive range of min and max.
Implements
INumber<TSelf>.Clamp(TSelf, TSelf, TSelf)Exceptions
Argument | min is greater than max. |