July 2013 8.6 DCM – Dynamic Collision Monitoring 1473
Mathematical
functions
The final value does not need to be entered directly for any input fields for
numbers (e.g. position, transformation, function). These fields can also have
formulas entered in them, in order to calculate the value. These formulas may
again contain variables.
The C syntax with the usual precedence rules (multiplication/division before
addition/subtraction) apply to the formulas. Only standard parentheses () are
permitted for parenthetical expressions. The upper/lower case of the
keywords listed below is unimportant.
Operation Keyword / operator
Basic operations + - * /
Exponent ^
Constants Fixed decimal point and floating point
numbers with a period as decimal sign and
exponent "e", e.g.: 1.234e5
Variables <Name of the variable>
Trigonometric functions sin, cos, tan, asin, acos, atan
sinh, cosh, tanh, arsinh, arcosh, artanh
(For trigonometric functions such as sin,
the angle must be given in radians. Use the
rad function for this.)
Conversion between
degrees and radians
deg, rad
Logarithmic functions log, ln, exp
Square root sqrt
Absolute value abs
Value as a whole number
(integer)
int
Algebraic sign function
-1 for x < 0
0 for x = 0
1 for x > 0
sign
Circle constant pi pi