Method cosh
cosh(float)
Returns the hyperbolic cosine of a float value.
Declaration
public static float cosh(float x)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | Input value. |
Returns
| Type | Description |
|---|---|
| float | The hyperbolic cosine of the input. |
cosh(float2)
Returns the componentwise hyperbolic cosine of a float2 vector.
Declaration
public static float2 cosh(float2 x)
Parameters
| Type | Name | Description |
|---|---|---|
| float2 | x | Input value. |
Returns
| Type | Description |
|---|---|
| float2 | The componentwise hyperbolic cosine of the input. |
cosh(float3)
Returns the componentwise hyperbolic cosine of a float3 vector.
Declaration
public static float3 cosh(float3 x)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | x | Input value. |
Returns
| Type | Description |
|---|---|
| float3 | The componentwise hyperbolic cosine of the input. |
cosh(float4)
Returns the componentwise hyperbolic cosine of a float4 vector.
Declaration
public static float4 cosh(float4 x)
Parameters
| Type | Name | Description |
|---|---|---|
| float4 | x | Input value. |
Returns
| Type | Description |
|---|---|
| float4 | The componentwise hyperbolic cosine of the input. |
cosh(double)
Returns the hyperbolic cosine of a double value.
Declaration
public static double cosh(double x)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | Input value. |
Returns
| Type | Description |
|---|---|
| double | The hyperbolic cosine of the input. |
cosh(double2)
Returns the componentwise hyperbolic cosine of a double2 vector.
Declaration
public static double2 cosh(double2 x)
Parameters
| Type | Name | Description |
|---|---|---|
| double2 | x | Input value. |
Returns
| Type | Description |
|---|---|
| double2 | The componentwise hyperbolic cosine of the input. |
cosh(double3)
Returns the componentwise hyperbolic cosine of a double3 vector.
Declaration
public static double3 cosh(double3 x)
Parameters
| Type | Name | Description |
|---|---|---|
| double3 | x | Input value. |
Returns
| Type | Description |
|---|---|
| double3 | The componentwise hyperbolic cosine of the input. |
cosh(double4)
Returns the componentwise hyperbolic cosine of a double4 vector.
Declaration
public static double4 cosh(double4 x)
Parameters
| Type | Name | Description |
|---|---|---|
| double4 | x | Input value. |
Returns
| Type | Description |
|---|---|
| double4 | The componentwise hyperbolic cosine of the input. |