| Parameter | Description |
|---|---|
| x | Input value. |
int The sign of the input.
Returns the sign of a int value. -1 if it is less than zero, 0 if it is zero and 1 if it greater than zero.
| Parameter | Description |
|---|---|
| x | Input value. |
int2 The componentwise sign of the input.
Returns the componentwise sign of a int2 value. 1 for positive components, 0 for zero components and -1 for negative components.
| Parameter | Description |
|---|---|
| x | Input value. |
int3 The componentwise sign of the input.
Returns the componentwise sign of a int3 value. 1 for positive components, 0 for zero components and -1 for negative components.
| Parameter | Description |
|---|---|
| x | Input value. |
int4 The componentwise sign of the input.
Returns the componentwise sign of a int4 value. 1 for positive components, 0 for zero components and -1 for negative components.
| Parameter | Description |
|---|---|
| x | Input value. |
float The sign of the input.
Returns the sign of a float value. -1.0f if it is less than zero, 0.0f if it is zero and 1.0f if it greater than zero.
| Parameter | Description |
|---|---|
| x | Input value. |
float2 The componentwise sign of the input.
Returns the componentwise sign of a float2 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components.
| Parameter | Description |
|---|---|
| x | Input value. |
float3 The componentwise sign of the input.
Returns the componentwise sign of a float3 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components.
| Parameter | Description |
|---|---|
| x | Input value. |
float4 The componentwise sign of the input.
Returns the componentwise sign of a float4 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components.
| Parameter | Description |
|---|---|
| x | Input value. |
double The sign of the input.
Returns the sign of a double value. -1.0 if it is less than zero, 0.0 if it is zero and 1.0 if it greater than zero.
| Parameter | Description |
|---|---|
| x | Input value. |
double2 The componentwise sign of the input.
Returns the componentwise sign of a double2 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components.
| Parameter | Description |
|---|---|
| x | Input value. |
double3 The componentwise sign of the input.
Returns the componentwise sign of a double3 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components.
| Parameter | Description |
|---|---|
| x | Input value. |
double4 The componentwise sign of the input.
Returns the componentwise sign of a double4 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components.