Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


bool3x2

A 3x2 matrix of bools.
Read time 1 minuteLast updated 12 days ago

Definition

public struct bool3x2 : IEquatable<bool3x2>

Fields

Value

Description

c0Column 0 of the matrix.
c1Column 1 of the matrix.

Constructors

Constructor

Description

bool3x2(System.Boolean)Constructs a bool3x2 matrix from a single bool value by assigning it to every component.
bool3x2(System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)Constructs a bool3x2 matrix from 6 bool values given in row-major order.
bool3x2(Unity.Mathematics.bool3,Unity.Mathematics.bool3)Constructs a bool3x2 matrix from two bool3 vectors.

Properties

Property

Description

this[]Returns the bool3 element at a specified index.

Methods

Method

Description

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

Operators

Operator

Description

operator &Returns the result of a componentwise bitwise and operation on a bool value and a bool3x2 matrix.
operator |Returns the result of a componentwise bitwise or operation on a bool value and a bool3x2 matrix.
operator ==Returns the result of a componentwise equality operation on a bool value and a bool3x2 matrix.
operator ^Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool3x2 matrix.
bool3x2Implicitly converts a single bool value to a bool3x2 matrix by assigning it to every component.
operator !=Returns the result of a componentwise not equal operation on a bool value and a bool3x2 matrix.
operator !Returns the result of a componentwise not operation on a bool3x2 matrix.