2017

Table Of Contents
Examples:
trunc(3.8) returns 3.
trunc(-3.8) returns -3.
trunc(PI) returns 3.
Trigonometric Functions
The following functions are useful for working with angles and performing various trigonometric calculations.
degrees
Converts angle units from radians into degrees.
degrees(Angle)Syntax:
Arguments:
Angle is the angle in radians that you want to convert.
Examples:
degrees(PI) returns 180.
degrees(PI/2) returns 90.
radians
Converts angle units from degrees into radians.
radians(Angle)Syntax:
Arguments:
Angle is the angle in degrees that you want to convert.
Example:
radians(225) returns 3.927 (5*PI/4).
cos
Returns the cosine of a given angle.
cos(Angle)Syntax:
Arguments:
Angle is the angle in radians of which you want the cosine.
Examples:
cos(0) returns 1.
cos(PI / 3) returns 0.5.
cos(frame / 10) * 100 yields the following curve:
Advanced Animation: About Expressions | 1263