Always snap to grid
Difference between revisions of "Max function"
From Unreal Wiki, The Unreal Engine Documentation Site
(Created page with '<noinclude>Max is math function provided by the {{classgames|Object}} class.</noinclude> {{code|native(250) static final function int '''Max''' (int '''A''', [[…') |
m (removed appearant leftover from Clamp copy/paste) |
||
Line 2: | Line 2: | ||
{{code|native(250) static final function [[int]] '''Max''' ([[int]] '''A''', [[int]] '''B''')}} | {{code|native(250) static final function [[int]] '''Max''' ([[int]] '''A''', [[int]] '''B''')}} | ||
− | Returns the larger of the two values. Note that when passing [[float]] parameters to this function, they are automatically [[typecast]]ed to type ''int''. If you don't want this, use the {{tl|FMax}}() function instead | + | Returns the larger of the two values. Note that when passing [[float]] parameters to this function, they are automatically [[typecast]]ed to type ''int''. If you don't want this, use the {{tl|FMax}}() function instead. |
<noinclude>[[Category:Math functions]]</noinclude> | <noinclude>[[Category:Math functions]]</noinclude> |
Latest revision as of 03:11, 13 August 2010
Max is math function provided by the Object(RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3) class.
Returns the larger of the two values. Note that when passing float parameters to this function, they are automatically typecasted to type int. If you don't want this, use the FMax() function instead.