4.9.1.8 minimum - min( x, y, ..., n )

The min function compares all arguments with each other and returns the currently lowest value. This function can be used with as many arguments as you like. In the example we use a sine and a cosine function to create two arguments with changing values.

sphere.YPosition = max( sin( time * 90 ) * 2, cos( time * 90 ) * 2 );

The function returns always the lowest value of all arguments:

The red curve represents the values of the first argument - the sine function - and the green curve represents the values of the second argument - the cosine function. The blue curve represents the output of the min function.

Xpressionist 3.5