| Parameter | Description |
|---|---|
| x | Value to square. |
float Returns the square of the input.
Computes the square (x * x) of the input argument x.
| Parameter | Description |
|---|---|
| x | Value to square. |
float2 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
| Parameter | Description |
|---|---|
| x | Value to square. |
float3 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
| Parameter | Description |
|---|---|
| x | Value to square. |
float4 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
| Parameter | Description |
|---|---|
| x | Value to square. |
double Returns the square of the input.
Computes the square (x * x) of the input argument x.
| Parameter | Description |
|---|---|
| x | Value to square. |
double2 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
| Parameter | Description |
|---|---|
| x | Value to square. |
double3 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
| Parameter | Description |
|---|---|
| x | Value to square. |
double4 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
| Parameter | Description |
|---|---|
| x | Value to square. |
int Returns the square of the input.
Computes the square (x * x) of the input argument x.
Due to integer overflow, it's not always guaranteed that square(x) is positive. For example, square(46341)
will return -2147479015.
| Parameter | Description |
|---|---|
| x | Value to square. |
int2 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
Due to integer overflow, it's not always guaranteed that square(x) is positive. For example, square(new int2(46341))
will return new int2(-2147479015).
| Parameter | Description |
|---|---|
| x | Value to square. |
int3 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
Due to integer overflow, it's not always guaranteed that square(x) is positive. For example, square(new int3(46341))
will return new int3(-2147479015).
| Parameter | Description |
|---|---|
| x | Value to square. |
int4 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
Due to integer overflow, it's not always guaranteed that square(x) is positive. For example, square(new int4(46341))
will return new int4(-2147479015).
| Parameter | Description |
|---|---|
| x | Value to square. |
uint Returns the square of the input.
Computes the square (x * x) of the input argument x.
Due to integer overflow, it's not always guaranteed that square(x) >= x. For example, square(4294967295u)
will return 1u.
| Parameter | Description |
|---|---|
| x | Value to square. |
uint2 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
Due to integer overflow, it's not always guaranteed that square(x) >= x. For example, square(new uint2(4294967295u))
will return new uint2(1u).
| Parameter | Description |
|---|---|
| x | Value to square. |
uint3 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
Due to integer overflow, it's not always guaranteed that square(x) >= x. For example, square(new uint3(4294967295u))
will return new uint3(1u).
| Parameter | Description |
|---|---|
| x | Value to square. |
uint4 Returns the square of the input.
Computes the component-wise square (x * x) of the input argument x.
Due to integer overflow, it's not always guaranteed that square(x) >= x. For example, square(new uint4(4294967295u))
will return new uint4(1u).