Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

uint4x2

struct in Unity.Mathematics

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A 4x2 matrix of uints.

Static Properties

Property Description
zerouint4x2 zero value.

Properties

Property Description
c0Column 0 of the matrix.
c1Column 1 of the matrix.
this[int]Returns the uint4 element at a specified index.

Constructors

Constructor Description
uint4x2Constructs a uint4x2 matrix from two uint4 vectors.

Public Methods

Method Description
EqualsReturns true if the uint4x2 is equal to a given uint4x2, false otherwise.
GetHashCodeReturns a hash code for the uint4x2.
ToStringReturns a string representation of the uint4x2.

Operators

Operator Description
operator -Returns the result of a componentwise subtraction operation on two uint4x2 matrices.
operator --Returns the result of a componentwise decrement operation on a uint4x2 matrix.
operator !=Returns the result of a componentwise not equal operation on two uint4x2 matrices.
operator *Returns the result of a componentwise multiplication operation on two uint4x2 matrices.
operator /Returns the result of a componentwise division operation on two uint4x2 matrices.
operator &Returns the result of a componentwise bitwise and operation on two uint4x2 matrices.
operator %Returns the result of a componentwise modulus operation on two uint4x2 matrices.
operator ^Returns the result of a componentwise bitwise exclusive or operation on two uint4x2 matrices.
operator +Returns the result of a componentwise addition operation on two uint4x2 matrices.
operator +Returns the result of a componentwise unary plus operation on a uint4x2 matrix.
operator ++Returns the result of a componentwise increment operation on a uint4x2 matrix.
operator <Returns the result of a componentwise less than operation on two uint4x2 matrices.
operator <<Returns the result of a componentwise left shift operation on a uint4x2 matrix by a number of bits specified by a single int.
operator <=Returns the result of a componentwise less or equal operation on two uint4x2 matrices.
operator ==Returns the result of a componentwise equality operation on two uint4x2 matrices.
operator >Returns the result of a componentwise greater than operation on two uint4x2 matrices.
operator >=Returns the result of a componentwise greater or equal operation on two uint4x2 matrices.
operator >>Returns the result of a componentwise right shift operation on a uint4x2 matrix by a number of bits specified by a single int.
operator |Returns the result of a componentwise bitwise or operation on two uint4x2 matrices.
operator ~Returns the result of a componentwise bitwise not operation on a uint4x2 matrix.
uint4x2Implicitly converts a single uint value to a uint4x2 matrix by assigning it to every component.
uint4x2Explicitly converts a single bool value to a uint4x2 matrix by converting it to uint and assigning it to every component.
uint4x2Explicitly converts a bool4x2 matrix to a uint4x2 matrix by componentwise conversion.
uint4x2Explicitly converts a single int value to a uint4x2 matrix by converting it to uint and assigning it to every component.
uint4x2Explicitly converts a int4x2 matrix to a uint4x2 matrix by componentwise conversion.
uint4x2Explicitly converts a single float value to a uint4x2 matrix by converting it to uint and assigning it to every component.
uint4x2Explicitly converts a float4x2 matrix to a uint4x2 matrix by componentwise conversion.
uint4x2Explicitly converts a single double value to a uint4x2 matrix by converting it to uint and assigning it to every component.
uint4x2Explicitly converts a double4x2 matrix to a uint4x2 matrix by componentwise conversion.