Apple Shake 4 User Manual
Page 944
944
Chapter 31
Expressions and Scripting
rnd2d(seed,seed,seed)
2d random value.
rnd3d(seed,seed,seed,seed)
3d random value.
rnd4d(seed,seed,seed,
seed,seed)
4d random value.
Trig Functions (in radians)
Definition
M_PI
A variable set to pi at 20 decimal places.
acos(A)
Arc cosine in radians.
asin(A)
Arc sine.
atan(A)
Arc tangent.
atan2(y,x)
Returns the radian verifying sin(a) = y and cos(a) = x.
cos(A)
Cosine.
sin(A)
Sin.
Trig Functions (in degrees)
Definition
Welcome back to trigonometry! For those of you who may have
forgotten, here is a helpful chart for some commonly used
equations.
acosd(A)
Arc cosine in degrees.
asind(A)
Arc sine in degrees.
atand(A)
Arc tangent in degrees.
atan2d(y,x)
Returns the angle verifying sin(a) = y and cos(a) = x.
cosd(A)
Cosine in degrees.
distance(x1,y1,x2,y2)
Calculates the distance between two points, (x1,y1) and (x2, y2).
sind(A)
Sin in degrees.
tand(A)
Tangent in degrees.
Noise Functions
These are ideal for WarpX and ColorX.