Skip to content

Object Extensions

Methods

T Clamp<T>(this T val, T min, T max) where T : IComparable<T>

Clamp the specified val, min and max.

Properties

val: Value

min: Minimum

max: Maximum

Example Usage