Skip to main content
Createwithplay home page
Search...
⌘K
Release Notes
Download Play
Download Play
Search...
Navigation
Math
Cos
Home
Editor
Layout
Interactions
Export
Support
Community
Interaction Mode
Interactions
Triggers
Actions
Helpers
Expression Editor
Overview
Object Properties
Device Properties
Color Properties
Equations
Functions
Functions
Color
Helper
Math
Abs
Arctangent (atan2)
Cos
Hypotenuse
Max
Min
Percent
Pi
Pow (Power)
Random
Random Integer
Round
Round Down
Round To
Round Up
Sin
Square Root
Tan
Truncating Remainder
Property
String
Time
Type
Prefabs
Overview
Custom Prefabs
Prefab List
Working with Data
External Data
Variables
Arrays
Deep Dives
Audio Overview
Native Menu Overview
Native Alert Overview
Timer Overview
On this page
Overview
Parameters
Example
Math
Cos
Copy page
An expression editor function that calculates the cosine of an angle.
Copy page
Overview
This function returns the cosine of a given number.
Parameters
Copy
Ask AI
cos(number)
Number
: The angle in radians.
Example
Copy
Ask AI
cos(0)
Returns
1
.
Arctangent (atan2)
Previous
Hypotenuse
Next
⌘I