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

    Struct bool3

    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 bool3 : IEquatable<bool3>

    Constructors

    bool3(Boolean)

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

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

    bool3(Boolean, Boolean, Boolean)

    Constructs a bool3 vector from three bool values.

    Declaration
    public bool3(bool x, bool y, bool z)
    Parameters
    Type Name Description
    System.Boolean x
    System.Boolean y
    System.Boolean z

    bool3(Boolean, bool2)

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

    Declaration
    public bool3(bool x, bool2 yz)
    Parameters
    Type Name Description
    System.Boolean x
    bool2 yz

    bool3(bool2, Boolean)

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

    Declaration
    public bool3(bool2 xy, bool z)
    Parameters
    Type Name Description
    bool2 xy
    System.Boolean z

    bool3(bool3)

    Constructs a bool3 vector from a bool3 vector.

    Declaration
    public bool3(bool3 xyz)
    Parameters
    Type Name Description
    bool3 xyz

    Fields

    x

    Declaration
    public bool x
    Field Value
    Type Description
    System.Boolean

    y

    Declaration
    public bool y
    Field Value
    Type Description
    System.Boolean

    z

    Declaration
    public bool z
    Field Value
    Type Description
    System.Boolean

    Properties

    Item[Int32]

    Returns the bool element at a specified index.

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

    xx

    Declaration
    public bool2 xx { get; }
    Property Value
    Type Description
    bool2

    xxx

    Declaration
    public bool3 xxx { get; }
    Property Value
    Type Description
    bool3

    xxxx

    Declaration
    public bool4 xxxx { get; }
    Property Value
    Type Description
    bool4

    xxxy

    Declaration
    public bool4 xxxy { get; }
    Property Value
    Type Description
    bool4

    xxxz

    Declaration
    public bool4 xxxz { get; }
    Property Value
    Type Description
    bool4

    xxy

    Declaration
    public bool3 xxy { get; }
    Property Value
    Type Description
    bool3

    xxyx

    Declaration
    public bool4 xxyx { get; }
    Property Value
    Type Description
    bool4

    xxyy

    Declaration
    public bool4 xxyy { get; }
    Property Value
    Type Description
    bool4

    xxyz

    Declaration
    public bool4 xxyz { get; }
    Property Value
    Type Description
    bool4

    xxz

    Declaration
    public bool3 xxz { get; }
    Property Value
    Type Description
    bool3

    xxzx

    Declaration
    public bool4 xxzx { get; }
    Property Value
    Type Description
    bool4

    xxzy

    Declaration
    public bool4 xxzy { get; }
    Property Value
    Type Description
    bool4

    xxzz

    Declaration
    public bool4 xxzz { get; }
    Property Value
    Type Description
    bool4

    xy

    Declaration
    public bool2 xy { get; set; }
    Property Value
    Type Description
    bool2

    xyx

    Declaration
    public bool3 xyx { get; }
    Property Value
    Type Description
    bool3

    xyxx

    Declaration
    public bool4 xyxx { get; }
    Property Value
    Type Description
    bool4

    xyxy

    Declaration
    public bool4 xyxy { get; }
    Property Value
    Type Description
    bool4

    xyxz

    Declaration
    public bool4 xyxz { get; }
    Property Value
    Type Description
    bool4

    xyy

    Declaration
    public bool3 xyy { get; }
    Property Value
    Type Description
    bool3

    xyyx

    Declaration
    public bool4 xyyx { get; }
    Property Value
    Type Description
    bool4

    xyyy

    Declaration
    public bool4 xyyy { get; }
    Property Value
    Type Description
    bool4

    xyyz

    Declaration
    public bool4 xyyz { get; }
    Property Value
    Type Description
    bool4

    xyz

    Declaration
    public bool3 xyz { get; set; }
    Property Value
    Type Description
    bool3

    xyzx

    Declaration
    public bool4 xyzx { get; }
    Property Value
    Type Description
    bool4

    xyzy

    Declaration
    public bool4 xyzy { get; }
    Property Value
    Type Description
    bool4

    xyzz

    Declaration
    public bool4 xyzz { get; }
    Property Value
    Type Description
    bool4

    xz

    Declaration
    public bool2 xz { get; set; }
    Property Value
    Type Description
    bool2

    xzx

    Declaration
    public bool3 xzx { get; }
    Property Value
    Type Description
    bool3

    xzxx

    Declaration
    public bool4 xzxx { get; }
    Property Value
    Type Description
    bool4

    xzxy

    Declaration
    public bool4 xzxy { get; }
    Property Value
    Type Description
    bool4

    xzxz

    Declaration
    public bool4 xzxz { get; }
    Property Value
    Type Description
    bool4

    xzy

    Declaration
    public bool3 xzy { get; set; }
    Property Value
    Type Description
    bool3

    xzyx

    Declaration
    public bool4 xzyx { get; }
    Property Value
    Type Description
    bool4

    xzyy

    Declaration
    public bool4 xzyy { get; }
    Property Value
    Type Description
    bool4

    xzyz

    Declaration
    public bool4 xzyz { get; }
    Property Value
    Type Description
    bool4

    xzz

    Declaration
    public bool3 xzz { get; }
    Property Value
    Type Description
    bool3

    xzzx

    Declaration
    public bool4 xzzx { get; }
    Property Value
    Type Description
    bool4

    xzzy

    Declaration
    public bool4 xzzy { get; }
    Property Value
    Type Description
    bool4

    xzzz

    Declaration
    public bool4 xzzz { get; }
    Property Value
    Type Description
    bool4

    yx

    Declaration
    public bool2 yx { get; set; }
    Property Value
    Type Description
    bool2

    yxx

    Declaration
    public bool3 yxx { get; }
    Property Value
    Type Description
    bool3

    yxxx

    Declaration
    public bool4 yxxx { get; }
    Property Value
    Type Description
    bool4

    yxxy

    Declaration
    public bool4 yxxy { get; }
    Property Value
    Type Description
    bool4

    yxxz

    Declaration
    public bool4 yxxz { get; }
    Property Value
    Type Description
    bool4

    yxy

    Declaration
    public bool3 yxy { get; }
    Property Value
    Type Description
    bool3

    yxyx

    Declaration
    public bool4 yxyx { get; }
    Property Value
    Type Description
    bool4

    yxyy

    Declaration
    public bool4 yxyy { get; }
    Property Value
    Type Description
    bool4

    yxyz

    Declaration
    public bool4 yxyz { get; }
    Property Value
    Type Description
    bool4

    yxz

    Declaration
    public bool3 yxz { get; set; }
    Property Value
    Type Description
    bool3

    yxzx

    Declaration
    public bool4 yxzx { get; }
    Property Value
    Type Description
    bool4

    yxzy

    Declaration
    public bool4 yxzy { get; }
    Property Value
    Type Description
    bool4

    yxzz

    Declaration
    public bool4 yxzz { get; }
    Property Value
    Type Description
    bool4

    yy

    Declaration
    public bool2 yy { get; }
    Property Value
    Type Description
    bool2

    yyx

    Declaration
    public bool3 yyx { get; }
    Property Value
    Type Description
    bool3

    yyxx

    Declaration
    public bool4 yyxx { get; }
    Property Value
    Type Description
    bool4

    yyxy

    Declaration
    public bool4 yyxy { get; }
    Property Value
    Type Description
    bool4

    yyxz

    Declaration
    public bool4 yyxz { get; }
    Property Value
    Type Description
    bool4

    yyy

    Declaration
    public bool3 yyy { get; }
    Property Value
    Type Description
    bool3

    yyyx

    Declaration
    public bool4 yyyx { get; }
    Property Value
    Type Description
    bool4

    yyyy

    Declaration
    public bool4 yyyy { get; }
    Property Value
    Type Description
    bool4

    yyyz

    Declaration
    public bool4 yyyz { get; }
    Property Value
    Type Description
    bool4

    yyz

    Declaration
    public bool3 yyz { get; }
    Property Value
    Type Description
    bool3

    yyzx

    Declaration
    public bool4 yyzx { get; }
    Property Value
    Type Description
    bool4

    yyzy

    Declaration
    public bool4 yyzy { get; }
    Property Value
    Type Description
    bool4

    yyzz

    Declaration
    public bool4 yyzz { get; }
    Property Value
    Type Description
    bool4

    yz

    Declaration
    public bool2 yz { get; set; }
    Property Value
    Type Description
    bool2

    yzx

    Declaration
    public bool3 yzx { get; set; }
    Property Value
    Type Description
    bool3

    yzxx

    Declaration
    public bool4 yzxx { get; }
    Property Value
    Type Description
    bool4

    yzxy

    Declaration
    public bool4 yzxy { get; }
    Property Value
    Type Description
    bool4

    yzxz

    Declaration
    public bool4 yzxz { get; }
    Property Value
    Type Description
    bool4

    yzy

    Declaration
    public bool3 yzy { get; }
    Property Value
    Type Description
    bool3

    yzyx

    Declaration
    public bool4 yzyx { get; }
    Property Value
    Type Description
    bool4

    yzyy

    Declaration
    public bool4 yzyy { get; }
    Property Value
    Type Description
    bool4

    yzyz

    Declaration
    public bool4 yzyz { get; }
    Property Value
    Type Description
    bool4

    yzz

    Declaration
    public bool3 yzz { get; }
    Property Value
    Type Description
    bool3

    yzzx

    Declaration
    public bool4 yzzx { get; }
    Property Value
    Type Description
    bool4

    yzzy

    Declaration
    public bool4 yzzy { get; }
    Property Value
    Type Description
    bool4

    yzzz

    Declaration
    public bool4 yzzz { get; }
    Property Value
    Type Description
    bool4

    zx

    Declaration
    public bool2 zx { get; set; }
    Property Value
    Type Description
    bool2

    zxx

    Declaration
    public bool3 zxx { get; }
    Property Value
    Type Description
    bool3

    zxxx

    Declaration
    public bool4 zxxx { get; }
    Property Value
    Type Description
    bool4

    zxxy

    Declaration
    public bool4 zxxy { get; }
    Property Value
    Type Description
    bool4

    zxxz

    Declaration
    public bool4 zxxz { get; }
    Property Value
    Type Description
    bool4

    zxy

    Declaration
    public bool3 zxy { get; set; }
    Property Value
    Type Description
    bool3

    zxyx

    Declaration
    public bool4 zxyx { get; }
    Property Value
    Type Description
    bool4

    zxyy

    Declaration
    public bool4 zxyy { get; }
    Property Value
    Type Description
    bool4

    zxyz

    Declaration
    public bool4 zxyz { get; }
    Property Value
    Type Description
    bool4

    zxz

    Declaration
    public bool3 zxz { get; }
    Property Value
    Type Description
    bool3

    zxzx

    Declaration
    public bool4 zxzx { get; }
    Property Value
    Type Description
    bool4

    zxzy

    Declaration
    public bool4 zxzy { get; }
    Property Value
    Type Description
    bool4

    zxzz

    Declaration
    public bool4 zxzz { get; }
    Property Value
    Type Description
    bool4

    zy

    Declaration
    public bool2 zy { get; set; }
    Property Value
    Type Description
    bool2

    zyx

    Declaration
    public bool3 zyx { get; set; }
    Property Value
    Type Description
    bool3

    zyxx

    Declaration
    public bool4 zyxx { get; }
    Property Value
    Type Description
    bool4

    zyxy

    Declaration
    public bool4 zyxy { get; }
    Property Value
    Type Description
    bool4

    zyxz

    Declaration
    public bool4 zyxz { get; }
    Property Value
    Type Description
    bool4

    zyy

    Declaration
    public bool3 zyy { get; }
    Property Value
    Type Description
    bool3

    zyyx

    Declaration
    public bool4 zyyx { get; }
    Property Value
    Type Description
    bool4

    zyyy

    Declaration
    public bool4 zyyy { get; }
    Property Value
    Type Description
    bool4

    zyyz

    Declaration
    public bool4 zyyz { get; }
    Property Value
    Type Description
    bool4

    zyz

    Declaration
    public bool3 zyz { get; }
    Property Value
    Type Description
    bool3

    zyzx

    Declaration
    public bool4 zyzx { get; }
    Property Value
    Type Description
    bool4

    zyzy

    Declaration
    public bool4 zyzy { get; }
    Property Value
    Type Description
    bool4

    zyzz

    Declaration
    public bool4 zyzz { get; }
    Property Value
    Type Description
    bool4

    zz

    Declaration
    public bool2 zz { get; }
    Property Value
    Type Description
    bool2

    zzx

    Declaration
    public bool3 zzx { get; }
    Property Value
    Type Description
    bool3

    zzxx

    Declaration
    public bool4 zzxx { get; }
    Property Value
    Type Description
    bool4

    zzxy

    Declaration
    public bool4 zzxy { get; }
    Property Value
    Type Description
    bool4

    zzxz

    Declaration
    public bool4 zzxz { get; }
    Property Value
    Type Description
    bool4

    zzy

    Declaration
    public bool3 zzy { get; }
    Property Value
    Type Description
    bool3

    zzyx

    Declaration
    public bool4 zzyx { get; }
    Property Value
    Type Description
    bool4

    zzyy

    Declaration
    public bool4 zzyy { get; }
    Property Value
    Type Description
    bool4

    zzyz

    Declaration
    public bool4 zzyz { get; }
    Property Value
    Type Description
    bool4

    zzz

    Declaration
    public bool3 zzz { get; }
    Property Value
    Type Description
    bool3

    zzzx

    Declaration
    public bool4 zzzx { get; }
    Property Value
    Type Description
    bool4

    zzzy

    Declaration
    public bool4 zzzy { get; }
    Property Value
    Type Description
    bool4

    zzzz

    Declaration
    public bool4 zzzz { get; }
    Property Value
    Type Description
    bool4

    Methods

    Equals(Object)

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

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

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

    GetHashCode()

    Returns a hash code for the bool3.

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

    ToString()

    Returns a string representation of the bool3.

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

    Operators

    BitwiseAnd(Boolean, bool3)

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

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

    BitwiseAnd(bool3, Boolean)

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

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

    BitwiseAnd(bool3, bool3)

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

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

    BitwiseOr(Boolean, bool3)

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

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

    BitwiseOr(bool3, Boolean)

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

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

    BitwiseOr(bool3, bool3)

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

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

    Equality(Boolean, bool3)

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

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

    Equality(bool3, Boolean)

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

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

    Equality(bool3, bool3)

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

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

    ExclusiveOr(Boolean, bool3)

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

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

    ExclusiveOr(bool3, Boolean)

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

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

    ExclusiveOr(bool3, bool3)

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

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

    Implicit(Boolean to bool3)

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

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

    Inequality(Boolean, bool3)

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

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

    Inequality(bool3, Boolean)

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

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

    Inequality(bool3, bool3)

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

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

    LogicalNot(bool3)

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

    Declaration
    public static bool3 operator !(bool3 val)
    Parameters
    Type Name Description
    bool3 val
    Returns
    Type Description
    bool3
    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