Clamp function: Difference between revisions
From Unreal Wiki, The Unreal Engine Documentation Site
Purpose for inline description for the static native functions articles |
m moved Clamp function to UE1:Clamp function: Inline only works on namespaces?... test |
(No difference)
|
Revision as of 18:53, 2 July 2010
Clamp is math function provided by the Object
()class.
Limits V to the interval of [A, B]. Exactly speaking, A will be returned if V is smaller than A, B will be returned if V is larger than B, otherwise V is returned.
This also applies if A is larger than B. So if V is larger than B, but smaller than A, the value of A is returned even though V is actually between the two values.