Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

Mathf.Acos

Switch to Manual
public static float Acos(float f);

Parameters

Description

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

using UnityEngine;
using System.Collections;

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