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

title: Acos description: published: true date: 2023-03-16T23:04:35.445Z tags: editor: markdown dateCreated: 2023-03-16T22:20:29.664Z

acos

The acos native AI script function returns the arccosine of a given input value.

Syntax

(y: f)acos(x: f)

Arguments

  • x (float): The input value.

Return value

  • y (float): The result of the arccosine operation.

Example

(y)acos(0.5f);

This example code calculates the arccosine of 0.5 and stores the result in the variable y.

Clone this wiki locally