Method abs
abs(Int32)
Returns the absolute value of a int value.
Declaration
public static int abs(int x)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | Input value. |
Returns
Type | Description |
---|---|
Int32 | The absolute value of the input. |
abs(int2)
Returns the componentwise absolute value of a int2 vector.
Declaration
public static int2 abs(int2 x)
Parameters
Type | Name | Description |
---|---|---|
int2 | x | Input value. |
Returns
Type | Description |
---|---|
int2 | The componentwise absolute value of the input. |
abs(int3)
Returns the componentwise absolute value of a int3 vector.
Declaration
public static int3 abs(int3 x)
Parameters
Type | Name | Description |
---|---|---|
int3 | x | Input value. |
Returns
Type | Description |
---|---|
int3 | The componentwise absolute value of the input. |
abs(int4)
Returns the componentwise absolute value of a int4 vector.
Declaration
public static int4 abs(int4 x)
Parameters
Type | Name | Description |
---|---|---|
int4 | x | Input value. |
Returns
Type | Description |
---|---|
int4 | The componentwise absolute value of the input. |
abs(Int64)
Returns the absolute value of a long value.
Declaration
public static long abs(long x)
Parameters
Type | Name | Description |
---|---|---|
Int64 | x | Input value. |
Returns
Type | Description |
---|---|
Int64 | The absolute value of the input. |
abs(Single)
Returns the absolute value of a float value.
Declaration
public static float abs(float x)
Parameters
Type | Name | Description |
---|---|---|
Single | x | Input value. |
Returns
Type | Description |
---|---|
Single | The absolute value of the input. |
abs(float2)
Returns the componentwise absolute value of a float2 vector.
Declaration
public static float2 abs(float2 x)
Parameters
Type | Name | Description |
---|---|---|
float2 | x | Input value. |
Returns
Type | Description |
---|---|
float2 | The componentwise absolute value of the input. |
abs(float3)
Returns the componentwise absolute value of a float3 vector.
Declaration
public static float3 abs(float3 x)
Parameters
Type | Name | Description |
---|---|---|
float3 | x | Input value. |
Returns
Type | Description |
---|---|
float3 | The componentwise absolute value of the input. |
abs(float4)
Returns the componentwise absolute value of a float4 vector.
Declaration
public static float4 abs(float4 x)
Parameters
Type | Name | Description |
---|---|---|
float4 | x | Input value. |
Returns
Type | Description |
---|---|
float4 | The componentwise absolute value of the input. |
abs(Double)
Returns the absolute value of a double value.
Declaration
public static double abs(double x)
Parameters
Type | Name | Description |
---|---|---|
Double | x | Input value. |
Returns
Type | Description |
---|---|
Double | The absolute value of the input. |
abs(double2)
Returns the componentwise absolute value of a double2 vector.
Declaration
public static double2 abs(double2 x)
Parameters
Type | Name | Description |
---|---|---|
double2 | x | Input value. |
Returns
Type | Description |
---|---|
double2 | The componentwise absolute value of the input. |
abs(double3)
Returns the componentwise absolute value of a double3 vector.
Declaration
public static double3 abs(double3 x)
Parameters
Type | Name | Description |
---|---|---|
double3 | x | Input value. |
Returns
Type | Description |
---|---|
double3 | The componentwise absolute value of the input. |
abs(double4)
Returns the componentwise absolute value of a double4 vector.
Declaration
public static double4 abs(double4 x)
Parameters
Type | Name | Description |
---|---|---|
double4 | x | Input value. |
Returns
Type | Description |
---|---|
double4 | The componentwise absolute value of the input. |