Struct bool4x4 | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct bool4x4

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Unity.Mathematics
    Syntax
    [Serializable]
    public struct bool4x4 : IEquatable<bool4x4>

    Constructors

    bool4x4(Boolean)

    Constructs a bool4x4 matrix from a single bool value by assigning it to every component.

    Declaration
    public bool4x4(bool v)
    Parameters
    Type Name Description
    System.Boolean v

    bool4x4(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)

    Constructs a bool4x4 matrix from 16 bool values given in row-major order.

    Declaration
    public bool4x4(bool m00, bool m01, bool m02, bool m03, bool m10, bool m11, bool m12, bool m13, bool m20, bool m21, bool m22, bool m23, bool m30, bool m31, bool m32, bool m33)
    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
    System.Boolean m20
    System.Boolean m21
    System.Boolean m22
    System.Boolean m23
    System.Boolean m30
    System.Boolean m31
    System.Boolean m32
    System.Boolean m33

    bool4x4(bool4, bool4, bool4, bool4)

    Constructs a bool4x4 matrix from four bool4 vectors.

    Declaration
    public bool4x4(bool4 c0, bool4 c1, bool4 c2, bool4 c3)
    Parameters
    Type Name Description
    bool4 c0
    bool4 c1
    bool4 c2
    bool4 c3

    Fields

    c0

    Declaration
    public bool4 c0
    Field Value
    Type Description
    bool4

    c1

    Declaration
    public bool4 c1
    Field Value
    Type Description
    bool4

    c2

    Declaration
    public bool4 c2
    Field Value
    Type Description
    bool4

    c3

    Declaration
    public bool4 c3
    Field Value
    Type Description
    bool4

    Properties

    Item[Int32]

    Returns the bool4 element at a specified index.

    Declaration
    public bool4 this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    bool4

    Methods

    Equals(Object)

    Returns true if the bool4x4 is equal to a given bool4x4, 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(bool4x4)

    Returns true if the bool4x4 is equal to a given bool4x4, false otherwise.

    Declaration
    public bool Equals(bool4x4 rhs)
    Parameters
    Type Name Description
    bool4x4 rhs
    Returns
    Type Description
    System.Boolean
    Implements
    System.IEquatable<T>.Equals(T)

    GetHashCode()

    Returns a hash code for the bool4x4.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a string representation of the bool4x4.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    BitwiseAnd(Boolean, bool4x4)

    Returns the result of a componentwise bitwise and operation on a bool value and a bool4x4 matrix.

    Declaration
    public static bool4x4 operator &(bool lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    BitwiseAnd(bool4x4, Boolean)

    Returns the result of a componentwise bitwise and operation on a bool4x4 matrix and a bool value.

    Declaration
    public static bool4x4 operator &(bool4x4 lhs, bool rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool4x4

    BitwiseAnd(bool4x4, bool4x4)

    Returns the result of a componentwise bitwise and operation on two bool4x4 matrices.

    Declaration
    public static bool4x4 operator &(bool4x4 lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    BitwiseOr(Boolean, bool4x4)

    Returns the result of a componentwise bitwise or operation on a bool value and a bool4x4 matrix.

    Declaration
    public static bool4x4 operator |(bool lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    BitwiseOr(bool4x4, Boolean)

    Returns the result of a componentwise bitwise or operation on a bool4x4 matrix and a bool value.

    Declaration
    public static bool4x4 operator |(bool4x4 lhs, bool rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool4x4

    BitwiseOr(bool4x4, bool4x4)

    Returns the result of a componentwise bitwise or operation on two bool4x4 matrices.

    Declaration
    public static bool4x4 operator |(bool4x4 lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    Equality(Boolean, bool4x4)

    Returns the result of a componentwise equality operation on a bool value and a bool4x4 matrix.

    Declaration
    public static bool4x4 operator ==(bool lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    Equality(bool4x4, Boolean)

    Returns the result of a componentwise equality operation on a bool4x4 matrix and a bool value.

    Declaration
    public static bool4x4 operator ==(bool4x4 lhs, bool rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool4x4

    Equality(bool4x4, bool4x4)

    Returns the result of a componentwise equality operation on two bool4x4 matrices.

    Declaration
    public static bool4x4 operator ==(bool4x4 lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    ExclusiveOr(Boolean, bool4x4)

    Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x4 matrix.

    Declaration
    public static bool4x4 operator ^(bool lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    ExclusiveOr(bool4x4, Boolean)

    Returns the result of a componentwise bitwise exclusive or operation on a bool4x4 matrix and a bool value.

    Declaration
    public static bool4x4 operator ^(bool4x4 lhs, bool rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool4x4

    ExclusiveOr(bool4x4, bool4x4)

    Returns the result of a componentwise bitwise exclusive or operation on two bool4x4 matrices.

    Declaration
    public static bool4x4 operator ^(bool4x4 lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    Implicit(Boolean to bool4x4)

    Implicitly converts a single bool value to a bool4x4 matrix by assigning it to every component.

    Declaration
    public static implicit operator bool4x4(bool v)
    Parameters
    Type Name Description
    System.Boolean v
    Returns
    Type Description
    bool4x4

    Inequality(Boolean, bool4x4)

    Returns the result of a componentwise not equal operation on a bool value and a bool4x4 matrix.

    Declaration
    public static bool4x4 operator !=(bool lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    Inequality(bool4x4, Boolean)

    Returns the result of a componentwise not equal operation on a bool4x4 matrix and a bool value.

    Declaration
    public static bool4x4 operator !=(bool4x4 lhs, bool rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool4x4

    Inequality(bool4x4, bool4x4)

    Returns the result of a componentwise not equal operation on two bool4x4 matrices.

    Declaration
    public static bool4x4 operator !=(bool4x4 lhs, bool4x4 rhs)
    Parameters
    Type Name Description
    bool4x4 lhs
    bool4x4 rhs
    Returns
    Type Description
    bool4x4

    LogicalNot(bool4x4)

    Returns the result of a componentwise not operation on a bool4x4 matrix.

    Declaration
    public static bool4x4 operator !(bool4x4 val)
    Parameters
    Type Name Description
    bool4x4 val
    Returns
    Type Description
    bool4x4
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023