Skip to content
Ryzom Core Wiki edited this page Jul 8, 2024 · 3 revisions

title: Cos description: published: true date: 2023-03-16T23:05:39.995Z tags: editor: markdown dateCreated: 2023-03-16T22:21:51.233Z

cos

The cos function returns the cosine of an input value.

Syntax

(y: f)cos(x: f)

Arguments

  • x (float): The input value.

Return 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.

Clone this wiki locally