2011

Table Of Contents
DescriptionFunction
Returns the square root of a given number.Sqrt (number)
Returns the remainder from dividing one number by an-
other.
Mod (number, divisor)
Returns the average of the given values.Average (number1, num-
ber2)
Returns the logarithm to base 10 of the given value (for
base -2 log, use Ln).
Log (number)
Returns the natural logarithm of the given value.Ln (number)
Returns the exponential of the given value.Exp (number)
Returns the smaller of the given numbers.Min (number1,number2)
Returns the larger of the given numbers.Max (number1, number2)
Vector Functions
DescriptionFunction
Returns a vector composed of the evaluation of the individual
component expression.
(expr1, expr2, expr3)
Returns the dot product of two vectors.Dot (vector1, vector2)
Returns a vector, the cross product of two vectors.Cross (vector1, vec-
tor2)
Returns the length of a given vector.Length (vector)
Returns a rotation vector based on a target position, an observ-
er position and an align direction vector.
LookAt (targetPos,Ob-
serverPos, AlignVector)
Returns a rotation vector such that a designated axis of an
object is aligned with the direction of the object's movement.
Align (targetPos,
alignVector,
bankingAngle) The banking angle controls the rotation around the axis, in
radians.
748 | Chapter 31 Expressions