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

    Struct int3

    Namespace: Unity.Mathematics
    Syntax
    [Serializable]
    public struct int3 : IEquatable<int3>, IFormattable

    Constructors

    int3(Boolean)

    Constructs a int3 vector from a single bool value by converting it to int and assigning it to every component.

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

    int3(Double)

    Constructs a int3 vector from a single double value by converting it to int and assigning it to every component.

    Declaration
    public int3(double v)
    Parameters
    Type Name Description
    System.Double v

    int3(Int32)

    Constructs a int3 vector from a single int value by assigning it to every component.

    Declaration
    public int3(int v)
    Parameters
    Type Name Description
    System.Int32 v

    int3(Int32, Int32, Int32)

    Constructs a int3 vector from three int values.

    Declaration
    public int3(int x, int y, int z)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y
    System.Int32 z

    int3(Int32, int2)

    Constructs a int3 vector from an int value and an int2 vector.

    Declaration
    public int3(int x, int2 yz)
    Parameters
    Type Name Description
    System.Int32 x
    int2 yz

    int3(Single)

    Constructs a int3 vector from a single float value by converting it to int and assigning it to every component.

    Declaration
    public int3(float v)
    Parameters
    Type Name Description
    System.Single v

    int3(UInt32)

    Constructs a int3 vector from a single uint value by converting it to int and assigning it to every component.

    Declaration
    public int3(uint v)
    Parameters
    Type Name Description
    System.UInt32 v

    int3(bool3)

    Constructs a int3 vector from a bool3 vector by componentwise conversion.

    Declaration
    public int3(bool3 v)
    Parameters
    Type Name Description
    bool3 v

    int3(double3)

    Constructs a int3 vector from a double3 vector by componentwise conversion.

    Declaration
    public int3(double3 v)
    Parameters
    Type Name Description
    double3 v

    int3(float3)

    Constructs a int3 vector from a float3 vector by componentwise conversion.

    Declaration
    public int3(float3 v)
    Parameters
    Type Name Description
    float3 v

    int3(int2, Int32)

    Constructs a int3 vector from an int2 vector and an int value.

    Declaration
    public int3(int2 xy, int z)
    Parameters
    Type Name Description
    int2 xy
    System.Int32 z

    int3(int3)

    Constructs a int3 vector from an int3 vector.

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

    int3(uint3)

    Constructs a int3 vector from a uint3 vector by componentwise conversion.

    Declaration
    public int3(uint3 v)
    Parameters
    Type Name Description
    uint3 v

    Fields

    x

    Declaration
    public int x
    Field Value
    Type Description
    System.Int32

    y

    Declaration
    public int y
    Field Value
    Type Description
    System.Int32

    z

    Declaration
    public int z
    Field Value
    Type Description
    System.Int32

    zero

    int3 zero value.

    Declaration
    public static readonly int3 zero
    Field Value
    Type Description
    int3

    Properties

    Item[Int32]

    Returns the int element at a specified index.

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

    xx

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

    xxx

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

    xxxx

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

    xxxy

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

    xxxz

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

    xxy

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

    xxyx

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

    xxyy

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

    xxyz

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

    xxz

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

    xxzx

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

    xxzy

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

    xxzz

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

    xy

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

    xyx

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

    xyxx

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

    xyxy

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

    xyxz

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

    xyy

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

    xyyx

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

    xyyy

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

    xyyz

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

    xyz

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

    xyzx

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

    xyzy

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

    xyzz

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

    xz

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

    xzx

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

    xzxx

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

    xzxy

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

    xzxz

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

    xzy

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

    xzyx

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

    xzyy

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

    xzyz

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

    xzz

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

    xzzx

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

    xzzy

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

    xzzz

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

    yx

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

    yxx

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

    yxxx

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

    yxxy

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

    yxxz

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

    yxy

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

    yxyx

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

    yxyy

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

    yxyz

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

    yxz

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

    yxzx

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

    yxzy

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

    yxzz

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

    yy

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

    yyx

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

    yyxx

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

    yyxy

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

    yyxz

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

    yyy

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

    yyyx

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

    yyyy

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

    yyyz

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

    yyz

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

    yyzx

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

    yyzy

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

    yyzz

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

    yz

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

    yzx

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

    yzxx

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

    yzxy

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

    yzxz

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

    yzy

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

    yzyx

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

    yzyy

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

    yzyz

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

    yzz

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

    yzzx

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

    yzzy

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

    yzzz

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

    zx

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

    zxx

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

    zxxx

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

    zxxy

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

    zxxz

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

    zxy

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

    zxyx

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

    zxyy

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

    zxyz

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

    zxz

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

    zxzx

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

    zxzy

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

    zxzz

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

    zy

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

    zyx

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

    zyxx

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

    zyxy

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

    zyxz

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

    zyy

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

    zyyx

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

    zyyy

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

    zyyz

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

    zyz

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

    zyzx

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

    zyzy

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

    zyzz

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

    zz

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

    zzx

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

    zzxx

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

    zzxy

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

    zzxz

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

    zzy

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

    zzyx

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

    zzyy

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

    zzyz

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

    zzz

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

    zzzx

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

    zzzy

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

    zzzz

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

    Methods

    Equals(Object)

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

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

    Declaration
    public bool Equals(int3 rhs)
    Parameters
    Type Name Description
    int3 rhs
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Returns a hash code for the int3.

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

    ToString()

    Returns a string representation of the int3.

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

    ToString(String, IFormatProvider)

    Returns a string representation of the int3 using a specified format and culture-specific format information.

    Declaration
    public string ToString(string format, IFormatProvider formatProvider)
    Parameters
    Type Name Description
    System.String format
    System.IFormatProvider formatProvider
    Returns
    Type Description
    System.String

    Operators

    Addition(Int32, int3)

    Returns the result of a componentwise addition operation on an int value and an int3 vector.

    Declaration
    public static int3 operator +(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    int3

    Addition(int3, Int32)

    Returns the result of a componentwise addition operation on an int3 vector and an int value.

    Declaration
    public static int3 operator +(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    int3

    Addition(int3, int3)

    Returns the result of a componentwise addition operation on two int3 vectors.

    Declaration
    public static int3 operator +(int3 lhs, int3 rhs)
    Parameters
    Type Name Description
    int3 lhs
    int3 rhs
    Returns
    Type Description
    int3

    BitwiseAnd(Int32, int3)

    Returns the result of a componentwise bitwise and operation on an int value and an int3 vector.

    Declaration
    public static int3 operator &(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    int3

    BitwiseAnd(int3, Int32)

    Returns the result of a componentwise bitwise and operation on an int3 vector and an int value.

    Declaration
    public static int3 operator &(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    int3

    BitwiseAnd(int3, int3)

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

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

    BitwiseOr(Int32, int3)

    Returns the result of a componentwise bitwise or operation on an int value and an int3 vector.

    Declaration
    public static int3 operator |(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    int3

    BitwiseOr(int3, Int32)

    Returns the result of a componentwise bitwise or operation on an int3 vector and an int value.

    Declaration
    public static int3 operator |(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    int3

    BitwiseOr(int3, int3)

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

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

    Decrement(int3)

    Returns the result of a componentwise decrement operation on an int3 vector.

    Declaration
    public static int3 operator --(int3 val)
    Parameters
    Type Name Description
    int3 val
    Returns
    Type Description
    int3

    Division(Int32, int3)

    Returns the result of a componentwise division operation on an int value and an int3 vector.

    Declaration
    public static int3 operator /(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    int3

    Division(int3, Int32)

    Returns the result of a componentwise division operation on an int3 vector and an int value.

    Declaration
    public static int3 operator /(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    int3

    Division(int3, int3)

    Returns the result of a componentwise division operation on two int3 vectors.

    Declaration
    public static int3 operator /(int3 lhs, int3 rhs)
    Parameters
    Type Name Description
    int3 lhs
    int3 rhs
    Returns
    Type Description
    int3

    Equality(Int32, int3)

    Returns the result of a componentwise equality operation on an int value and an int3 vector.

    Declaration
    public static bool3 operator ==(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    bool3

    Equality(int3, Int32)

    Returns the result of a componentwise equality operation on an int3 vector and an int value.

    Declaration
    public static bool3 operator ==(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    bool3

    Equality(int3, int3)

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

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

    ExclusiveOr(Int32, int3)

    Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3 vector.

    Declaration
    public static int3 operator ^(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    int3

    ExclusiveOr(int3, Int32)

    Returns the result of a componentwise bitwise exclusive or operation on an int3 vector and an int value.

    Declaration
    public static int3 operator ^(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    int3

    ExclusiveOr(int3, int3)

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

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

    Explicit(Boolean to int3)

    Explicitly converts a single bool value to a int3 vector by converting it to int and assigning it to every component.

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

    Explicit(Double to int3)

    Explicitly converts a single double value to a int3 vector by converting it to int and assigning it to every component.

    Declaration
    public static explicit operator int3(double v)
    Parameters
    Type Name Description
    System.Double v
    Returns
    Type Description
    int3

    Explicit(Single to int3)

    Explicitly converts a single float value to a int3 vector by converting it to int and assigning it to every component.

    Declaration
    public static explicit operator int3(float v)
    Parameters
    Type Name Description
    System.Single v
    Returns
    Type Description
    int3

    Explicit(UInt32 to int3)

    Explicitly converts a single uint value to a int3 vector by converting it to int and assigning it to every component.

    Declaration
    public static explicit operator int3(uint v)
    Parameters
    Type Name Description
    System.UInt32 v
    Returns
    Type Description
    int3

    Explicit(bool3 to int3)

    Explicitly converts a bool3 vector to a int3 vector by componentwise conversion.

    Declaration
    public static explicit operator int3(bool3 v)
    Parameters
    Type Name Description
    bool3 v
    Returns
    Type Description
    int3

    Explicit(double3 to int3)

    Explicitly converts a double3 vector to a int3 vector by componentwise conversion.

    Declaration
    public static explicit operator int3(double3 v)
    Parameters
    Type Name Description
    double3 v
    Returns
    Type Description
    int3

    Explicit(float3 to int3)

    Explicitly converts a float3 vector to a int3 vector by componentwise conversion.

    Declaration
    public static explicit operator int3(float3 v)
    Parameters
    Type Name Description
    float3 v
    Returns
    Type Description
    int3

    Explicit(uint3 to int3)

    Explicitly converts a uint3 vector to a int3 vector by componentwise conversion.

    Declaration
    public static explicit operator int3(uint3 v)
    Parameters
    Type Name Description
    uint3 v
    Returns
    Type Description
    int3

    GreaterThan(Int32, int3)

    Returns the result of a componentwise greater than operation on an int value and an int3 vector.

    Declaration
    public static bool3 operator>(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    bool3

    GreaterThan(int3, Int32)

    Returns the result of a componentwise greater than operation on an int3 vector and an int value.

    Declaration
    public static bool3 operator>(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    bool3

    GreaterThan(int3, int3)

    Returns the result of a componentwise greater than operation on two int3 vectors.

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

    GreaterThanOrEqual(Int32, int3)

    Returns the result of a componentwise greater or equal operation on an int value and an int3 vector.

    Declaration
    public static bool3 operator >=(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    bool3

    GreaterThanOrEqual(int3, Int32)

    Returns the result of a componentwise greater or equal operation on an int3 vector and an int value.

    Declaration
    public static bool3 operator >=(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    bool3

    GreaterThanOrEqual(int3, int3)

    Returns the result of a componentwise greater or equal operation on two int3 vectors.

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

    Implicit(Int32 to int3)

    Implicitly converts a single int value to a int3 vector by assigning it to every component.

    Declaration
    public static implicit operator int3(int v)
    Parameters
    Type Name Description
    System.Int32 v
    Returns
    Type Description
    int3

    Increment(int3)

    Returns the result of a componentwise increment operation on an int3 vector.

    Declaration
    public static int3 operator ++(int3 val)
    Parameters
    Type Name Description
    int3 val
    Returns
    Type Description
    int3

    Inequality(Int32, int3)

    Returns the result of a componentwise not equal operation on an int value and an int3 vector.

    Declaration
    public static bool3 operator !=(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    bool3

    Inequality(int3, Int32)

    Returns the result of a componentwise not equal operation on an int3 vector and an int value.

    Declaration
    public static bool3 operator !=(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    bool3

    Inequality(int3, int3)

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

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

    LeftShift(int3, Int32)

    Returns the result of a componentwise left shift operation on an int3 vector by a number of bits specified by a single int.

    Declaration
    public static int3 operator <<(int3 x, int n)
    Parameters
    Type Name Description
    int3 x
    System.Int32 n
    Returns
    Type Description
    int3

    LessThan(Int32, int3)

    Returns the result of a componentwise less than operation on an int value and an int3 vector.

    Declaration
    public static bool3 operator <(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    bool3

    LessThan(int3, Int32)

    Returns the result of a componentwise less than operation on an int3 vector and an int value.

    Declaration
    public static bool3 operator <(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    bool3

    LessThan(int3, int3)

    Returns the result of a componentwise less than operation on two int3 vectors.

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

    LessThanOrEqual(Int32, int3)

    Returns the result of a componentwise less or equal operation on an int value and an int3 vector.

    Declaration
    public static bool3 operator <=(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    bool3

    LessThanOrEqual(int3, Int32)

    Returns the result of a componentwise less or equal operation on an int3 vector and an int value.

    Declaration
    public static bool3 operator <=(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    bool3

    LessThanOrEqual(int3, int3)

    Returns the result of a componentwise less or equal operation on two int3 vectors.

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

    Modulus(Int32, int3)

    Returns the result of a componentwise modulus operation on an int value and an int3 vector.

    Declaration
    public static int3 operator %(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    int3

    Modulus(int3, Int32)

    Returns the result of a componentwise modulus operation on an int3 vector and an int value.

    Declaration
    public static int3 operator %(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    int3

    Modulus(int3, int3)

    Returns the result of a componentwise modulus operation on two int3 vectors.

    Declaration
    public static int3 operator %(int3 lhs, int3 rhs)
    Parameters
    Type Name Description
    int3 lhs
    int3 rhs
    Returns
    Type Description
    int3

    Multiply(Int32, int3)

    Returns the result of a componentwise multiplication operation on an int value and an int3 vector.

    Declaration
    public static int3 operator *(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    int3

    Multiply(int3, Int32)

    Returns the result of a componentwise multiplication operation on an int3 vector and an int value.

    Declaration
    public static int3 operator *(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    int3

    Multiply(int3, int3)

    Returns the result of a componentwise multiplication operation on two int3 vectors.

    Declaration
    public static int3 operator *(int3 lhs, int3 rhs)
    Parameters
    Type Name Description
    int3 lhs
    int3 rhs
    Returns
    Type Description
    int3

    OnesComplement(int3)

    Returns the result of a componentwise bitwise not operation on an int3 vector.

    Declaration
    public static int3 operator ~(int3 val)
    Parameters
    Type Name Description
    int3 val
    Returns
    Type Description
    int3

    RightShift(int3, Int32)

    Returns the result of a componentwise right shift operation on an int3 vector by a number of bits specified by a single int.

    Declaration
    public static int3 operator >>(int3 x, int n)
    Parameters
    Type Name Description
    int3 x
    System.Int32 n
    Returns
    Type Description
    int3

    Subtraction(Int32, int3)

    Returns the result of a componentwise subtraction operation on an int value and an int3 vector.

    Declaration
    public static int3 operator -(int lhs, int3 rhs)
    Parameters
    Type Name Description
    System.Int32 lhs
    int3 rhs
    Returns
    Type Description
    int3

    Subtraction(int3, Int32)

    Returns the result of a componentwise subtraction operation on an int3 vector and an int value.

    Declaration
    public static int3 operator -(int3 lhs, int rhs)
    Parameters
    Type Name Description
    int3 lhs
    System.Int32 rhs
    Returns
    Type Description
    int3

    Subtraction(int3, int3)

    Returns the result of a componentwise subtraction operation on two int3 vectors.

    Declaration
    public static int3 operator -(int3 lhs, int3 rhs)
    Parameters
    Type Name Description
    int3 lhs
    int3 rhs
    Returns
    Type Description
    int3

    UnaryNegation(int3)

    Returns the result of a componentwise unary minus operation on an int3 vector.

    Declaration
    public static int3 operator -(int3 val)
    Parameters
    Type Name Description
    int3 val
    Returns
    Type Description
    int3

    UnaryPlus(int3)

    Returns the result of a componentwise unary plus operation on an int3 vector.

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