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

title: Sin description: published: true date: 2023-03-16T23:11:43.775Z tags: editor: markdown dateCreated: 2023-03-16T22:29:36.912Z

sin

The sin native AI script function returns the sinus of the input value.

Syntax

(y: f)sin(x: f) // sin_f_f

Arguments

  • x (float): The input value in radians.

Return values

  • y (float): The sinus of the input value.

Examples

(y)sin(x); 

This example code calls the sin function with an input value of x and assigns the resulting sinus value to y.

Clone this wiki locally