UE2:Object static native functions (UT2004)
![]() |
Object (static native functions) |
- Object static native functions in other games:
- Other member categories for this class:
Math functions
Int functions
Clamp
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.
Max
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.
Min
Returns the smaller 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 FMin() function instead.
Float functions
Abs
Returns the absolute value of A. That means, if A is greater than or equal to zero, it is returned unchanged. Otherwise, if A is less than zero, -A is returned.
Acos
Calculates the arccos of A.
Asin
Calculates the arcsin of A.
Atan
Calculates atan2 for the arguments A and B.
Ceil
Returns the smallest integer number greater than or equal to A.
Cos
Calculates the cosine of A.
Exp
Calculates e to the power of A, the exponential function.
FClamp
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.
FMax
Returns the larger of the two values.
FMin
Returns the smallerof the two values.
Loge
Calculates the logarithm of A to the base of e, the natural logarithm.
Round
Rounds A to the nearest integer number. If the decimal part of A is .5
or larger, the smallest integer number greater than A is returned, otherwise the largest integer number less than or equal too A is returned.
Sin
Calculates the sine of A.
Sqrt
Calculates the square root of A.
Square
Calculates A * A, i.e. A squared.
Tan
Calculates the tangent of A.
Random numbers
FRand
Rand
RotRand
VRand
Static native functions
Asc
Caps
Chr
ClassIsChildOf
Divide
DynamicLoadObject
Eval
FindObject
GetAxes
GetEnum
GetPerObjectNames
GetUnAxes
InStr
InterpCurveEval
InterpCurveGetInputDomain
InterpCurveGetOutputRange
Invert
Left
Len
Lerp
Localize
Locs
Log
Mid
MirrorVectorByNormal
Normal
Normalize
OrthoRotation
QuatFindBetween
QuatFromAxisAndAngle
QuatFromRotator
QuatInvert
QuatProduct
QuatRotateVector
QuatSlerp
QuatToRotator
Repl
ResetConfig
Right
Smerp
Split
StaticClearConfig
StaticSaveConfig
StopWatch
StrCmp
VSize
Warn