Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


tan

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

Definition

tan(float)

Returns the tangent of a float value.
public static float tan(float x)

Parameters

Input value.

Returns

Type

Description

floatThe tangent of the input.

tan(float2)

Returns the componentwise tangent of a float2 vector.
public static float2 tan(float2 x)

Parameters

Input value.

Returns

Type

Description

float2The componentwise tangent of the input.

tan(float3)

Returns the componentwise tangent of a float3 vector.
public static float3 tan(float3 x)

Parameters

Input value.

Returns

Type

Description

float3The componentwise tangent of the input.

tan(float4)

Returns the componentwise tangent of a float4 vector.
public static float4 tan(float4 x)

Parameters

Input value.

Returns

Type

Description

float4The componentwise tangent of the input.

tan(double)

Returns the tangent of a double value.
public static double tan(double x)

Parameters

Input value.

Returns

Type

Description

doubleThe tangent of the input.

tan(double2)

Returns the componentwise tangent of a double2 vector.
public static double2 tan(double2 x)

Parameters

Input value.

Returns

Type

Description

double2The componentwise tangent of the input.

tan(double3)

Returns the componentwise tangent of a double3 vector.
public static double3 tan(double3 x)

Parameters

Input value.

Returns

Type

Description

double3The componentwise tangent of the input.

tan(double4)

Returns the componentwise tangent of a double4 vector.
public static double4 tan(double4 x)

Parameters

Input value.

Returns

Type

Description

double4The componentwise tangent of the input.