Clamps the specified value within the given range. The order of First and Second is unimportant.
Namespace:
Atalasoft.PdfDoc.Geometry
Assembly:
Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax Public Function Clamp (
val As T
) As T
Parameters
- val
- Type: T
The value to clamp.
Return Value
Type:
TThe
val if in Range, otherwise either First or Second.
See Also