cos - ryzom/ryzomcore GitHub Wiki
title: Cos description: published: true date: 2023-03-16T23:05:39.995Z tags: editor: markdown dateCreated: 2023-03-16T22:21:51.233Z
The cos function returns the cosine of an input value.
(y: f)cos(x: f)
- x (float): The input value.
- y (float): The result of the cosine operation.
(y)cos(0.5f);
This example code calculates the cosine of 0.5 and stores the result in the variable y
.