Struct bool4x2
Syntax
[Serializable]
public struct bool4x2 : IEquatable<bool4x2>
Constructors
bool4x2(Boolean)
Constructs a bool4x2 matrix from a single bool value by assigning it to every component.
Declaration
Parameters
Type |
Name |
Description |
System.Boolean |
v |
|
bool4x2(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Constructs a bool4x2 matrix from 8 bool values given in row-major order.
Declaration
public bool4x2(bool m00, bool m01, bool m10, bool m11, bool m20, bool m21, bool m30, bool m31)
Parameters
Type |
Name |
Description |
System.Boolean |
m00 |
|
System.Boolean |
m01 |
|
System.Boolean |
m10 |
|
System.Boolean |
m11 |
|
System.Boolean |
m20 |
|
System.Boolean |
m21 |
|
System.Boolean |
m30 |
|
System.Boolean |
m31 |
|
bool4x2(bool4, bool4)
Constructs a bool4x2 matrix from two bool4 vectors.
Declaration
public bool4x2(bool4 c0, bool4 c1)
Parameters
Fields
c0
Declaration
Field Value
c1
Declaration
Field Value
Properties
Item[Int32]
Returns the bool4 element at a specified index.
Declaration
public bool4 this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
Equals(Object)
Returns true if the bool4x2 is equal to a given bool4x2, false otherwise.
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Equals(bool4x2)
Returns true if the bool4x2 is equal to a given bool4x2, false otherwise.
Declaration
public bool Equals(bool4x2 rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Returns a hash code for the bool4x2.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
Returns a string representation of the bool4x2.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
BitwiseAnd(Boolean, bool4x2)
Returns the result of a componentwise bitwise and operation on a bool value and a bool4x2 matrix.
Declaration
public static bool4x2 operator &(bool lhs, bool4x2 rhs)
Parameters
Type |
Name |
Description |
System.Boolean |
lhs |
|
bool4x2 |
rhs |
|
Returns
BitwiseAnd(bool4x2, Boolean)
Returns the result of a componentwise bitwise and operation on a bool4x2 matrix and a bool value.
Declaration
public static bool4x2 operator &(bool4x2 lhs, bool rhs)
Parameters
Type |
Name |
Description |
bool4x2 |
lhs |
|
System.Boolean |
rhs |
|
Returns
BitwiseAnd(bool4x2, bool4x2)
Returns the result of a componentwise bitwise and operation on two bool4x2 matrices.
Declaration
public static bool4x2 operator &(bool4x2 lhs, bool4x2 rhs)
Parameters
Returns
BitwiseOr(Boolean, bool4x2)
Returns the result of a componentwise bitwise or operation on a bool value and a bool4x2 matrix.
Declaration
public static bool4x2 operator |(bool lhs, bool4x2 rhs)
Parameters
Type |
Name |
Description |
System.Boolean |
lhs |
|
bool4x2 |
rhs |
|
Returns
BitwiseOr(bool4x2, Boolean)
Returns the result of a componentwise bitwise or operation on a bool4x2 matrix and a bool value.
Declaration
public static bool4x2 operator |(bool4x2 lhs, bool rhs)
Parameters
Type |
Name |
Description |
bool4x2 |
lhs |
|
System.Boolean |
rhs |
|
Returns
BitwiseOr(bool4x2, bool4x2)
Returns the result of a componentwise bitwise or operation on two bool4x2 matrices.
Declaration
public static bool4x2 operator |(bool4x2 lhs, bool4x2 rhs)
Parameters
Returns
Equality(Boolean, bool4x2)
Returns the result of a componentwise equality operation on a bool value and a bool4x2 matrix.
Declaration
public static bool4x2 operator ==(bool lhs, bool4x2 rhs)
Parameters
Type |
Name |
Description |
System.Boolean |
lhs |
|
bool4x2 |
rhs |
|
Returns
Equality(bool4x2, Boolean)
Returns the result of a componentwise equality operation on a bool4x2 matrix and a bool value.
Declaration
public static bool4x2 operator ==(bool4x2 lhs, bool rhs)
Parameters
Type |
Name |
Description |
bool4x2 |
lhs |
|
System.Boolean |
rhs |
|
Returns
Equality(bool4x2, bool4x2)
Returns the result of a componentwise equality operation on two bool4x2 matrices.
Declaration
public static bool4x2 operator ==(bool4x2 lhs, bool4x2 rhs)
Parameters
Returns
ExclusiveOr(Boolean, bool4x2)
Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x2 matrix.
Declaration
public static bool4x2 operator ^(bool lhs, bool4x2 rhs)
Parameters
Type |
Name |
Description |
System.Boolean |
lhs |
|
bool4x2 |
rhs |
|
Returns
ExclusiveOr(bool4x2, Boolean)
Returns the result of a componentwise bitwise exclusive or operation on a bool4x2 matrix and a bool value.
Declaration
public static bool4x2 operator ^(bool4x2 lhs, bool rhs)
Parameters
Type |
Name |
Description |
bool4x2 |
lhs |
|
System.Boolean |
rhs |
|
Returns
ExclusiveOr(bool4x2, bool4x2)
Returns the result of a componentwise bitwise exclusive or operation on two bool4x2 matrices.
Declaration
public static bool4x2 operator ^(bool4x2 lhs, bool4x2 rhs)
Parameters
Returns
Implicit(Boolean to bool4x2)
Implicitly converts a single bool value to a bool4x2 matrix by assigning it to every component.
Declaration
public static implicit operator bool4x2(bool v)
Parameters
Type |
Name |
Description |
System.Boolean |
v |
|
Returns
Inequality(Boolean, bool4x2)
Returns the result of a componentwise not equal operation on a bool value and a bool4x2 matrix.
Declaration
public static bool4x2 operator !=(bool lhs, bool4x2 rhs)
Parameters
Type |
Name |
Description |
System.Boolean |
lhs |
|
bool4x2 |
rhs |
|
Returns
Inequality(bool4x2, Boolean)
Returns the result of a componentwise not equal operation on a bool4x2 matrix and a bool value.
Declaration
public static bool4x2 operator !=(bool4x2 lhs, bool rhs)
Parameters
Type |
Name |
Description |
bool4x2 |
lhs |
|
System.Boolean |
rhs |
|
Returns
Inequality(bool4x2, bool4x2)
Returns the result of a componentwise not equal operation on two bool4x2 matrices.
Declaration
public static bool4x2 operator !=(bool4x2 lhs, bool4x2 rhs)
Parameters
Returns
LogicalNot(bool4x2)
Returns the result of a componentwise not operation on a bool4x2 matrix.
Declaration
public static bool4x2 operator !(bool4x2 val)
Parameters
Returns