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