Struct uint2
A 2 component vector of uints.
Namespace: Unity.Mathematics
Syntax
public struct uint2 : System.IEquatable<uint2>, IFormattable
Constructors
Name | Description |
---|---|
uint2(Boolean) | 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(Int32) | Constructs a uint2 vector from a single int value by converting it to uint and assigning it to every component. |
uint2(Single) | Constructs a uint2 vector from a single float value by converting it to uint and assigning it to every component. |
uint2(UInt32) | Constructs a uint2 vector from a single uint value by assigning it to every component. |
uint2(UInt32, UInt32) | 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 |
---|---|
Item[Int32] | Returns the uint element at a specified index. |
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. |
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. |
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 |
---|---|
Addition(UInt32, uint2) | Returns the result of a componentwise addition operation on a uint value and a uint2 vector. |
Addition(uint2, UInt32) | Returns the result of a componentwise addition operation on a uint2 vector and a uint value. |
Addition(uint2, uint2) | Returns the result of a componentwise addition operation on two uint2 vectors. |
BitwiseAnd(UInt32, uint2) | Returns the result of a componentwise bitwise and operation on a uint value and a uint2 vector. |
BitwiseAnd(uint2, UInt32) | Returns the result of a componentwise bitwise and operation on a uint2 vector and a uint value. |
BitwiseAnd(uint2, uint2) | Returns the result of a componentwise bitwise and operation on two uint2 vectors. |
BitwiseOr(UInt32, uint2) | Returns the result of a componentwise bitwise or operation on a uint value and a uint2 vector. |
BitwiseOr(uint2, UInt32) | Returns the result of a componentwise bitwise or operation on a uint2 vector and a uint value. |
BitwiseOr(uint2, uint2) | Returns the result of a componentwise bitwise or operation on two uint2 vectors. |
Decrement(uint2) | Returns the result of a componentwise decrement operation on a uint2 vector. |
Division(UInt32, uint2) | Returns the result of a componentwise division operation on a uint value and a uint2 vector. |
Division(uint2, UInt32) | Returns the result of a componentwise division operation on a uint2 vector and a uint value. |
Division(uint2, uint2) | Returns the result of a componentwise division operation on two uint2 vectors. |
Equality(UInt32, uint2) | Returns the result of a componentwise equality operation on a uint value and a uint2 vector. |
Equality(uint2, UInt32) | Returns the result of a componentwise equality operation on a uint2 vector and a uint value. |
Equality(uint2, uint2) | Returns the result of a componentwise equality operation on two uint2 vectors. |
ExclusiveOr(UInt32, uint2) | Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2 vector. |
ExclusiveOr(uint2, UInt32) | Returns the result of a componentwise bitwise exclusive or operation on a uint2 vector and a uint value. |
ExclusiveOr(uint2, uint2) | Returns the result of a componentwise bitwise exclusive or operation on two uint2 vectors. |
Explicit(Boolean to uint2) | Explicitly converts a single bool value to a uint2 vector by converting it to uint and assigning it to every component. |
Explicit(Double to uint2) | Explicitly converts a single double value to a uint2 vector by converting it to uint and assigning it to every component. |
Explicit(Int32 to uint2) | Explicitly converts a single int value to a uint2 vector by converting it to uint and assigning it to every component. |
Explicit(Single to uint2) | Explicitly converts a single float value to a uint2 vector by converting it to uint and assigning it to every component. |
Explicit(bool2 to uint2) | Explicitly converts a bool2 vector to a uint2 vector by componentwise conversion. |
Explicit(double2 to uint2) | Explicitly converts a double2 vector to a uint2 vector by componentwise conversion. |
Explicit(float2 to uint2) | Explicitly converts a float2 vector to a uint2 vector by componentwise conversion. |
Explicit(int2 to uint2) | Explicitly converts a int2 vector to a uint2 vector by componentwise conversion. |
GreaterThan(UInt32, uint2) | Returns the result of a componentwise greater than operation on a uint value and a uint2 vector. |
GreaterThan(uint2, UInt32) | Returns the result of a componentwise greater than operation on a uint2 vector and a uint value. |
GreaterThan(uint2, uint2) | Returns the result of a componentwise greater than operation on two uint2 vectors. |
GreaterThanOrEqual(UInt32, uint2) | Returns the result of a componentwise greater or equal operation on a uint value and a uint2 vector. |
GreaterThanOrEqual(uint2, UInt32) | Returns the result of a componentwise greater or equal operation on a uint2 vector and a uint value. |
GreaterThanOrEqual(uint2, uint2) | Returns the result of a componentwise greater or equal operation on two uint2 vectors. |
Implicit(UInt32 to uint2) | Implicitly converts a single uint value to a uint2 vector by assigning it to every component. |
Increment(uint2) | Returns the result of a componentwise increment operation on a uint2 vector. |
Inequality(UInt32, uint2) | Returns the result of a componentwise not equal operation on a uint value and a uint2 vector. |
Inequality(uint2, UInt32) | Returns the result of a componentwise not equal operation on a uint2 vector and a uint value. |
Inequality(uint2, uint2) | Returns the result of a componentwise not equal operation on two uint2 vectors. |
LeftShift(uint2, Int32) | Returns the result of a componentwise left shift operation on a uint2 vector by a number of bits specified by a single int. |
LessThan(UInt32, uint2) | Returns the result of a componentwise less than operation on a uint value and a uint2 vector. |
LessThan(uint2, UInt32) | Returns the result of a componentwise less than operation on a uint2 vector and a uint value. |
LessThan(uint2, uint2) | Returns the result of a componentwise less than operation on two uint2 vectors. |
LessThanOrEqual(UInt32, uint2) | Returns the result of a componentwise less or equal operation on a uint value and a uint2 vector. |
LessThanOrEqual(uint2, UInt32) | Returns the result of a componentwise less or equal operation on a uint2 vector and a uint value. |
LessThanOrEqual(uint2, uint2) | Returns the result of a componentwise less or equal operation on two uint2 vectors. |
Modulus(UInt32, uint2) | Returns the result of a componentwise modulus operation on a uint value and a uint2 vector. |
Modulus(uint2, UInt32) | Returns the result of a componentwise modulus operation on a uint2 vector and a uint value. |
Modulus(uint2, uint2) | Returns the result of a componentwise modulus operation on two uint2 vectors. |
Multiply(UInt32, uint2) | Returns the result of a componentwise multiplication operation on a uint value and a uint2 vector. |
Multiply(uint2, UInt32) | Returns the result of a componentwise multiplication operation on a uint2 vector and a uint value. |
Multiply(uint2, uint2) | Returns the result of a componentwise multiplication operation on two uint2 vectors. |
OnesComplement(uint2) | Returns the result of a componentwise bitwise not operation on a uint2 vector. |
RightShift(uint2, Int32) | Returns the result of a componentwise right shift operation on a uint2 vector by a number of bits specified by a single int. |
Subtraction(UInt32, uint2) | Returns the result of a componentwise subtraction operation on a uint value and a uint2 vector. |
Subtraction(uint2, UInt32) | Returns the result of a componentwise subtraction operation on a uint2 vector and a uint value. |
Subtraction(uint2, uint2) | Returns the result of a componentwise subtraction operation on two uint2 vectors. |
UnaryNegation(uint2) | Returns the result of a componentwise unary minus operation on a uint2 vector. |
UnaryPlus(uint2) | Returns the result of a componentwise unary plus operation on a uint2 vector. |