Toggle navigation
Smartsite Releases
Smartsite Manager
User Manual
Features & Modules
Install & Config
Advanced
SXML
Smartsite Documentatie
>
SXML
>
Vipers
>
Global Viper Methods
>
Math Viper Class
>
Math.Cos Viper Method
Collapse All
Expand All
SCAS Level
Returns the cosine of the specified angle.
Syntax
Smartsite SXML
Copy Code
float math.cos(float a)
Parameters
Name
Data Type
Description
a
Float
An angle, measured in radians.
Return Value
Data Type
Description
Float
The cosine of the specified angle.
Example
Smartsite SXML
Copy Code
{math.cos(2*math.pi())}