Struct uint2
A 2 component vector of uints.
Inherited Members
Namespace: Unity.Mathematics
Assembly: solution.dll
Syntax
[Serializable]
public struct uint2 : IEquatable<uint2>, IFormattable
Constructors
Name | Description |
---|---|
uint2(bool) | Constructs a uint2 vector from a single bool value by converting it to uint and assigning it to every component. |
uint2(double) | Constructs a uint2 vector from a single double value by converting it to uint and assigning it to every component. |
uint2(int) | Constructs a uint2 vector from a single int value by converting it to uint and assigning it to every component. |
uint2(float) | Constructs a uint2 vector from a single float value by converting it to uint and assigning it to every component. |
uint2(uint) | Constructs a uint2 vector from a single uint value by assigning it to every component. |
uint2(uint, uint) | Constructs a uint2 vector from two uint values. |
uint2(bool2) | Constructs a uint2 vector from a bool2 vector by componentwise conversion. |
uint2(double2) | Constructs a uint2 vector from a double2 vector by componentwise conversion. |
uint2(float2) | Constructs a uint2 vector from a float2 vector by componentwise conversion. |
uint2(int2) | Constructs a uint2 vector from a int2 vector by componentwise conversion. |
uint2(uint2) | Constructs a uint2 vector from a uint2 vector. |
Fields
Name | Description |
---|---|
x | x component of the vector. |
y | y component of the vector. |
zero | uint2 zero value. |
Properties
Name | Description |
---|---|
this[int] | Returns the uint element at a specified index. |
Methods
Name | Description |
---|---|
Equals(object) | Returns true if the uint2 is equal to a given uint2, false otherwise. |
Equals(uint2) | Returns true if the uint2 is equal to a given uint2, false otherwise. |
GetHashCode() | Returns a hash code for the uint2. |
ToString() | Returns a string representation of the uint2. |
ToString(string, IFormatProvider) | Returns a string representation of the uint2 using a specified format and culture-specific format information. |
Operators
Name | Description |
---|---|
operator +(uint, uint2) | Returns the result of a componentwise addition operation on a uint value and a uint2 vector. |
operator +(uint2, uint) | Returns the result of a componentwise addition operation on a uint2 vector and a uint value. |
operator +(uint2, uint2) | Returns the result of a componentwise addition operation on two uint2 vectors. |
operator &(uint, uint2) | Returns the result of a componentwise bitwise and operation on a uint value and a uint2 vector. |
operator &(uint2, uint) | Returns the result of a componentwise bitwise and operation on a uint2 vector and a uint value. |
operator &(uint2, uint2) | Returns the result of a componentwise bitwise and operation on two uint2 vectors. |
operator |(uint, uint2) | Returns the result of a componentwise bitwise or operation on a uint value and a uint2 vector. |
operator |(uint2, uint) | Returns the result of a componentwise bitwise or operation on a uint2 vector and a uint value. |
operator |(uint2, uint2) | Returns the result of a componentwise bitwise or operation on two uint2 vectors. |
operator --(uint2) | Returns the result of a componentwise decrement operation on a uint2 vector. |
operator /(uint, uint2) | Returns the result of a componentwise division operation on a uint value and a uint2 vector. |
operator /(uint2, uint) | Returns the result of a componentwise division operation on a uint2 vector and a uint value. |
operator /(uint2, uint2) | Returns the result of a componentwise division operation on two uint2 vectors. |
operator ==(uint, uint2) | Returns the result of a componentwise equality operation on a uint value and a uint2 vector. |
operator ==(uint2, uint) | Returns the result of a componentwise equality operation on a uint2 vector and a uint value. |
operator ==(uint2, uint2) | Returns the result of a componentwise equality operation on two uint2 vectors. |
operator ^(uint, uint2) | Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2 vector. |
operator ^(uint2, uint) | Returns the result of a componentwise bitwise exclusive or operation on a uint2 vector and a uint value. |
operator ^(uint2, uint2) | Returns the result of a componentwise bitwise exclusive or operation on two uint2 vectors. |
explicit operator uint2(bool) | Explicitly converts a single bool value to a uint2 vector by converting it to uint and assigning it to every component. |
explicit operator uint2(double) | Explicitly converts a single double value to a uint2 vector by converting it to uint and assigning it to every component. |
explicit operator uint2(int) | Explicitly converts a single int value to a uint2 vector by converting it to uint and assigning it to every component. |
explicit operator uint2(float) | Explicitly converts a single float value to a uint2 vector by converting it to uint and assigning it to every component. |
explicit operator uint2(bool2) | Explicitly converts a bool2 vector to a uint2 vector by componentwise conversion. |
explicit operator uint2(double2) | Explicitly converts a double2 vector to a uint2 vector by componentwise conversion. |
explicit operator uint2(float2) | Explicitly converts a float2 vector to a uint2 vector by componentwise conversion. |
explicit operator uint2(int2) | Explicitly converts a int2 vector to a uint2 vector by componentwise conversion. |
operator >(uint, uint2) | Returns the result of a componentwise greater than operation on a uint value and a uint2 vector. |
operator >(uint2, uint) | Returns the result of a componentwise greater than operation on a uint2 vector and a uint value. |
operator >(uint2, uint2) | Returns the result of a componentwise greater than operation on two uint2 vectors. |
operator >=(uint, uint2) | Returns the result of a componentwise greater or equal operation on a uint value and a uint2 vector. |
operator >=(uint2, uint) | Returns the result of a componentwise greater or equal operation on a uint2 vector and a uint value. |
operator >=(uint2, uint2) | Returns the result of a componentwise greater or equal operation on two uint2 vectors. |
implicit operator uint2(uint) | Implicitly converts a single uint value to a uint2 vector by assigning it to every component. |
operator ++(uint2) | Returns the result of a componentwise increment operation on a uint2 vector. |
operator !=(uint, uint2) | Returns the result of a componentwise not equal operation on a uint value and a uint2 vector. |
operator !=(uint2, uint) | Returns the result of a componentwise not equal operation on a uint2 vector and a uint value. |
operator !=(uint2, uint2) | Returns the result of a componentwise not equal operation on two uint2 vectors. |
operator <<(uint2, int) | Returns the result of a componentwise left shift operation on a uint2 vector by a number of bits specified by a single int. |
operator <(uint, uint2) | Returns the result of a componentwise less than operation on a uint value and a uint2 vector. |
operator <(uint2, uint) | Returns the result of a componentwise less than operation on a uint2 vector and a uint value. |
operator <(uint2, uint2) | Returns the result of a componentwise less than operation on two uint2 vectors. |
operator <=(uint, uint2) | Returns the result of a componentwise less or equal operation on a uint value and a uint2 vector. |
operator <=(uint2, uint) | Returns the result of a componentwise less or equal operation on a uint2 vector and a uint value. |
operator <=(uint2, uint2) | Returns the result of a componentwise less or equal operation on two uint2 vectors. |
operator %(uint, uint2) | Returns the result of a componentwise modulus operation on a uint value and a uint2 vector. |
operator %(uint2, uint) | Returns the result of a componentwise modulus operation on a uint2 vector and a uint value. |
operator %(uint2, uint2) | Returns the result of a componentwise modulus operation on two uint2 vectors. |
operator *(uint, uint2) | Returns the result of a componentwise multiplication operation on a uint value and a uint2 vector. |
operator *(uint2, uint) | Returns the result of a componentwise multiplication operation on a uint2 vector and a uint value. |
operator *(uint2, uint2) | Returns the result of a componentwise multiplication operation on two uint2 vectors. |
operator ~(uint2) | Returns the result of a componentwise bitwise not operation on a uint2 vector. |
operator >>(uint2, int) | Returns the result of a componentwise right shift operation on a uint2 vector by a number of bits specified by a single int. |
operator -(uint, uint2) | Returns the result of a componentwise subtraction operation on a uint value and a uint2 vector. |
operator -(uint2, uint) | Returns the result of a componentwise subtraction operation on a uint2 vector and a uint value. |
operator -(uint2, uint2) | Returns the result of a componentwise subtraction operation on two uint2 vectors. |
operator -(uint2) | Returns the result of a componentwise unary minus operation on a uint2 vector. |
operator +(uint2) | Returns the result of a componentwise unary plus operation on a uint2 vector. |