Mathematical Functions
A
number of internal functions (which are otherwise typically not used in breve simulations) are available for math-related expressions. Internal functions are called just like C functions:
.
functionName (arguments)
-
sin(gives the sine of the radian angleinput)input. -
cos(gives the cosine of the radian angleinput)input. -
tan(gives the tangent of the radian angleinput)input. -
asin(gives the radian angle arc sine ofinput)input. -
acos(gives the radian angle arc cosine of theinput)input. -
atan(input)gives the radian angle arc tangent ofinput. -
sqrt(gives theinput)floatsquare root ofinput. -
angle(gives thea,b)floatangle in radians between vectorsaandb. -
max(gives the maximum ofa,b)floatsaandb. -
min(gives the minimum ofa,b)floatsaandb. -
cross(gives the vector cross product of vectorsv1,v2)v1andv2. -
dot(gives the float dot product of vectorsv1,v2)v1andv2. -
log(gives theinput)floatnatural log ofinput. -
randomGauss()gives afloatrandom number with a Gaussian distribution. -
transpose(gives the transpose of the matrixinput)input.
The following internal functions are used for testing float variables for special values which have meaning primarily to developers and plugin authors.
-
isnan(returns 1 if the input is a "not-a-number" float value, 0 otherwise.input) -
isinf(returns 1 if the input is a float value representing infinity, 0 otherwise.input)
