docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct bool4

    A 4 component vector of bools.

    Implements
    IEquatable<bool4>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Mathematics
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct bool4 : IEquatable<bool4>

    Constructors

    Name Description
    bool4(bool)

    Constructs a bool4 vector from a single bool value by assigning it to every component.

    bool4(bool, bool, bool, bool)

    Constructs a bool4 vector from four bool values.

    bool4(bool, bool, bool2)

    Constructs a bool4 vector from two bool values and a bool2 vector.

    bool4(bool, bool2, bool)

    Constructs a bool4 vector from a bool value, a bool2 vector and a bool value.

    bool4(bool, bool3)

    Constructs a bool4 vector from a bool value and a bool3 vector.

    bool4(bool2, bool, bool)

    Constructs a bool4 vector from a bool2 vector and two bool values.

    bool4(bool2, bool2)

    Constructs a bool4 vector from two bool2 vectors.

    bool4(bool3, bool)

    Constructs a bool4 vector from a bool3 vector and a bool value.

    bool4(bool4)

    Constructs a bool4 vector from a bool4 vector.

    Fields

    Name Description
    w

    w component of the vector.

    x

    x component of the vector.

    y

    y component of the vector.

    z

    z component of the vector.

    Properties

    Name Description
    this[int]

    Returns the bool element at a specified index.

    Methods

    Name Description
    Equals(object)

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

    Equals(bool4)

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

    GetHashCode()

    Returns a hash code for the bool4.

    ToString()

    Returns a string representation of the bool4.

    Operators

    Name Description
    operator &(bool, bool4)

    Returns the result of a componentwise bitwise and operation on a bool value and a bool4 vector.

    operator &(bool4, bool)

    Returns the result of a componentwise bitwise and operation on a bool4 vector and a bool value.

    operator &(bool4, bool4)

    Returns the result of a componentwise bitwise and operation on two bool4 vectors.

    operator |(bool, bool4)

    Returns the result of a componentwise bitwise or operation on a bool value and a bool4 vector.

    operator |(bool4, bool)

    Returns the result of a componentwise bitwise or operation on a bool4 vector and a bool value.

    operator |(bool4, bool4)

    Returns the result of a componentwise bitwise or operation on two bool4 vectors.

    operator ==(bool, bool4)

    Returns the result of a componentwise equality operation on a bool value and a bool4 vector.

    operator ==(bool4, bool)

    Returns the result of a componentwise equality operation on a bool4 vector and a bool value.

    operator ==(bool4, bool4)

    Returns the result of a componentwise equality operation on two bool4 vectors.

    operator ^(bool, bool4)

    Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4 vector.

    operator ^(bool4, bool)

    Returns the result of a componentwise bitwise exclusive or operation on a bool4 vector and a bool value.

    operator ^(bool4, bool4)

    Returns the result of a componentwise bitwise exclusive or operation on two bool4 vectors.

    implicit operator bool4(bool)

    Implicitly converts a single bool value to a bool4 vector by assigning it to every component.

    operator !=(bool, bool4)

    Returns the result of a componentwise not equal operation on a bool value and a bool4 vector.

    operator !=(bool4, bool)

    Returns the result of a componentwise not equal operation on a bool4 vector and a bool value.

    operator !=(bool4, bool4)

    Returns the result of a componentwise not equal operation on two bool4 vectors.

    operator !(bool4)

    Returns the result of a componentwise not operation on a bool4 vector.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)