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