Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


acos

Returns the arccosine of a float value.
Read time 1 minuteLast updated 4 days ago

Definition

acos(float)

Returns the arccosine of a float value.
public static float acos(float x)

Parameters

Input value.

Returns

Type

Description

floatThe arccosine of the input.

acos(float2)

Returns the componentwise arccosine of a float2 vector.
public static float2 acos(float2 x)

Parameters

Input value.

Returns

Type

Description

float2The componentwise arccosine of the input.

acos(float3)

Returns the componentwise arccosine of a float3 vector.
public static float3 acos(float3 x)

Parameters

Input value.

Returns

Type

Description

float3The componentwise arccosine of the input.

acos(float4)

Returns the componentwise arccosine of a float4 vector.
public static float4 acos(float4 x)

Parameters

Input value.

Returns

Type

Description

float4The componentwise arccosine of the input.

acos(double)

Returns the arccosine of a double value.
public static double acos(double x)

Parameters

Input value.

Returns

Type

Description

doubleThe arccosine of the input.

acos(double2)

Returns the componentwise arccosine of a double2 vector.
public static double2 acos(double2 x)

Parameters

Input value.

Returns

Type

Description

double2The componentwise arccosine of the input.

acos(double3)

Returns the componentwise arccosine of a double3 vector.
public static double3 acos(double3 x)

Parameters

Input value.

Returns

Type

Description

double3The componentwise arccosine of the input.

acos(double4)

Returns the componentwise arccosine of a double4 vector.
public static double4 acos(double4 x)

Parameters

Input value.

Returns

Type

Description

double4The componentwise arccosine of the input.