A 2 component vector of halfs.
| Property | Description |
|---|---|
| zero | half2 zero value. |
| Property | Description |
|---|---|
| this[int] | Returns the half element at a specified index. |
| x | x component of the vector. |
| xx | Swizzles the vector. |
| xxx | Swizzles the vector. |
| xxxx | Swizzles the vector. |
| xxxy | Swizzles the vector. |
| xxy | Swizzles the vector. |
| xxyx | Swizzles the vector. |
| xxyy | Swizzles the vector. |
| xy | Swizzles the vector. |
| xyx | Swizzles the vector. |
| xyxx | Swizzles the vector. |
| xyxy | Swizzles the vector. |
| xyy | Swizzles the vector. |
| xyyx | Swizzles the vector. |
| xyyy | Swizzles the vector. |
| y | y component of the vector. |
| yx | Swizzles the vector. |
| yxx | Swizzles the vector. |
| yxxx | Swizzles the vector. |
| yxxy | Swizzles the vector. |
| yxy | Swizzles the vector. |
| yxyx | Swizzles the vector. |
| yxyy | Swizzles the vector. |
| yy | Swizzles the vector. |
| yyx | Swizzles the vector. |
| yyxx | Swizzles the vector. |
| yyxy | Swizzles the vector. |
| yyy | Swizzles the vector. |
| yyyx | Swizzles the vector. |
| yyyy | Swizzles the vector. |
| Constructor | Description |
|---|---|
| half2 | Constructs a half2 vector from two half values. |
| Method | Description |
|---|---|
| Equals | Returns true if the half2 is equal to a given half2, false otherwise. |
| GetHashCode | Returns a hash code for the half2. |
| ToString | Returns a string representation of the half2. |
| Operator | Description |
|---|---|
| half2 | Implicitly converts a single half value to a half2 vector by assigning it to every component. |
| half2 | Explicitly converts a single float value to a half2 vector by converting it to half and assigning it to every component. |
| half2 | Explicitly converts a float2 vector to a half2 vector by componentwise conversion. |
| half2 | Explicitly converts a single double value to a half2 vector by converting it to half and assigning it to every component. |
| half2 | Explicitly converts a double2 vector to a half2 vector by componentwise conversion. |
| operator != | Returns the result of a componentwise not equal operation on two half2 vectors. |
| operator == | Returns the result of a componentwise equality operation on two half2 vectors. |