Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

bool2x2

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 2x2 matrix of bools.

Properties

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

Constructors

Constructor Description
bool2x2Constructs a bool2x2 matrix from two bool2 vectors.

Public Methods

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

Operators

Operator Description
bool2x2Implicitly converts a single bool value to a bool2x2 matrix by assigning it to every component.
operator !Returns the result of a componentwise not operation on a bool2x2 matrix.
operator !=Returns the result of a componentwise not equal operation on two bool2x2 matrices.
operator &Returns the result of a componentwise bitwise and operation on two bool2x2 matrices.
operator ^Returns the result of a componentwise bitwise exclusive or operation on two bool2x2 matrices.
operator ==Returns the result of a componentwise equality operation on two bool2x2 matrices.
operator |Returns the result of a componentwise bitwise or operation on two bool2x2 matrices.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961