Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


cosh

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

Definition

cosh(float)

Returns the hyperbolic cosine of a float value.
public static float cosh(float x)

Parameters

Input value.

Returns

Type

Description

floatThe hyperbolic cosine of the input.

cosh(float2)

Returns the componentwise hyperbolic cosine of a float2 vector.
public static float2 cosh(float2 x)

Parameters

Input value.

Returns

Type

Description

float2The componentwise hyperbolic cosine of the input.

cosh(float3)

Returns the componentwise hyperbolic cosine of a float3 vector.
public static float3 cosh(float3 x)

Parameters

Input value.

Returns

Type

Description

float3The componentwise hyperbolic cosine of the input.

cosh(float4)

Returns the componentwise hyperbolic cosine of a float4 vector.
public static float4 cosh(float4 x)

Parameters

Input value.

Returns

Type

Description

float4The componentwise hyperbolic cosine of the input.

cosh(double)

Returns the hyperbolic cosine of a double value.
public static double cosh(double x)

Parameters

Input value.

Returns

Type

Description

doubleThe hyperbolic cosine of the input.

cosh(double2)

Returns the componentwise hyperbolic cosine of a double2 vector.
public static double2 cosh(double2 x)

Parameters

Input value.

Returns

Type

Description

double2The componentwise hyperbolic cosine of the input.

cosh(double3)

Returns the componentwise hyperbolic cosine of a double3 vector.
public static double3 cosh(double3 x)

Parameters

Input value.

Returns

Type

Description

double3The componentwise hyperbolic cosine of the input.

cosh(double4)

Returns the componentwise hyperbolic cosine of a double4 vector.
public static double4 cosh(double4 x)

Parameters

Input value.

Returns

Type

Description

double4The componentwise hyperbolic cosine of the input.