Functions
=SINE(0.5 * PI * @Value)
Functions are operations that expect 0 or more parameters and produce some kind of output. In the above example, the function is named SINE
. Functions are called using parenthesis and will return some value dependent on the function. In the case of SINE
, the value returned is the trigonometric function sine for the specified value (in radians). If the shape data property @Value has the value 5, then the expression is equivalent to:
=SINE(0.5 * PI * 5)
The value of SINE
at 2.5 pi radians is 1, so the expression returns 1.
Some functions take no parameters, and can be used by themselves (with or without parentheses). For example, the CURRENTSECOND
function does not require parameters, and can be used by itself.
Updated 7 months ago