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

title: Tan description: published: true date: 2023-03-16T23:12:32.131Z tags: editor: markdown dateCreated: 2023-03-16T22:30:39.004Z

tan

The tan native AI script function is used to calculate the tangent of an input value in radians.

Syntax

(value: f)tan(input: f) // tan_f_f

Arguments

  • input (float): The input value in radians to calculate the tangent of.

Return value

  • value (float): The tangent of the input value in radians.

Example

(val)tan(1.0);

This example code calls the tan function with an input value of 1.0 and returns the calculated tangent as a float.

Clone this wiki locally