2011

Table Of Contents
DescriptionFunction
Returns the distance between the two points represented by
the vectors pos1 and pos2.
Distance (pos1, pos2)
relangle (point1, point2, delta1, delta2): returns the angle
between two vectors (point1,point2) and
relangle
(point1+delta1,point2+delta2). All parameters are 2D vec-
tors.This is used for implementing rotation tracking.
relscale (point1, point2, delta1, delta2): returns the ratio
between the length of vector (point1+delta, point2+delta2)
relscale
and (point1, point2).All parameters are 2D vectors.This is used
for implementing scale tracking.
Random Number Functions
DescriptionFunction
Returns a random value between 0.0 and 1.0, based on the
given seed.
Rand (seed)
Returns a truly random value between two given numbers.
The sequence of returned values constantly changes, never
producing past results.
TrueRand (low, high)
Returns a random value between -1 and 1, based on a given
seed.
Noise (seed)
Returns a random value between -1 and 1, based on a given
vector and with the ability to control the level of smoothness
of the resulting curve.
Turbulence (seed,
level)
Returns a random vector for all elements in a vector between
-1 and 1.
Noise3 (seed)
Returns a random vector with all the elements in the vector
between -1 and 1, with the ability to control the level of
smoothness of the resulting curve.
Turbulence3
(3d_seed,level)
Random Number Functions | 749