acos - ryzom/ryzomcore GitHub Wiki


title: Acos description: published: true date: 2023-03-12T23:15:05.265Z tags: editor: markdown dateCreated: 2023-03-12T23:15:01.770Z

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.

⚠️ **GitHub.com Fallback** ⚠️