2017

Table Of Contents
atan2
Returns the arctangent of y/x, using the signs of both arguments to determine the quadrant of the return
value. The arctangent is the angle from the origin to the vector (x,y). The returned angle is given in radians
within the range -PI to PI.
atan2(x, y)Syntax:
Arguments:
x and y are the components of the vector to be used in the function.
Examples:
atan2(1, 1) returns 0.7854 (PI/4 radians).
atan2(-1, -1) returns -2.3562 (-3*PI/4 radians).
atan2(1, 0) returns 1.5708 (PI/2 radians).
degrees(atan2(1,1)) returns 45.
Vector Functions
Use the following functions for performing various vector-related operations.
length
Returns the euclidean length (magnitude) of a given vector. The euclidian length is equivalent to the
expression sqrt(pow(Vector.x, 2) + pow(Vector.y, 2) + pow(Vector.z, 2)).
length(Vector)Syntax:
Arguments:
Vector is the vector of which you want the euclidean length.
Examples:
length((2, 0, 0)) returns 2.
length((1, 1, 0)) returns 1.4142.
length((-1, -1, -1)) returns 1.7321.
length(axis1.position - axis2.position) returns the distance between axis1 and axis2.
dot
Returns the scalar dot-product of two given vectors. The dot-product is the product of the lengths of two
vectors and the cosine of the angle between them. If the two vectors are at a right angle (90 degrees), their
dot-product is 0.
If the product of their lengths equals 1 and they point in opposite directions (180 degrees), their dot-product
is -1. The dot-product is equivalent to the expression V1.x * V2.x + V1.y * V2.y + V1.z * V2.z.
dot(V1, V2)Syntax:
1266 | Chapter 24 Animating Keyframes