Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Mathf.Atan

public static float Atan(float f);

Parameters

Description

Returns the arc-tangent of f - the angle in radians whose tangent is f.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { print(Mathf.Atan(0.5F)); } }