Contradictory as it may sound right now FloatMath.Clamp already works via integer types due to the Clamp<T>(...) where T : IComparable<T> implementation. These are less efficient than a manual implementation though so this should provide some nice savings.
Contradictory as it may sound right now
FloatMath.Clamp
already works via integer types due to theClamp<T>(...) where T : IComparable<T>
implementation. These are less efficient than a manual implementation though so this should provide some nice savings.