Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

Mathf.Asin

public static float Asin(float f);

Description

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

using UnityEngine;
using System.Collections;

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