4.9.3.3 tangent - tan( x )

We use the tan - stands for tangens - function in this example to animate the Y position of the sphere. The tan function in Xpressionist assumes the argument to be in degrees. We use time * 90 as an argument for the tan functions because we want the argument to create angle values between 0 and 360 in four seconds - like one full rotation:

sphere.YPosition = tan( time * 90 );

We preview the result:

The tan function returns the tangens for any given value. The tangens is a value between 0 and infinit. However, Xpressionist does of course not return infinit but a very, very large number.

Xpressionist 3.5