Legacy Documentation: Version 5.1
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 function Acos(f: float): float;

Parameters

Description

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

	print (Mathf.Acos(0.5));