Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


int3

A 3 component vector of ints.
Read time 6 minutesLast updated 4 days ago

Definition

public struct int3 : IEquatable<int3>, IFormattable

Fields

Value

Description

xx component of the vector.
yy component of the vector.
zz component of the vector.

Static Fields

Value

Description

zeroint3 zero value.

Constructors

Constructor

Description

int3(System.Boolean)Constructs a int3 vector from a single bool value by converting it to int and assigning it to every component.
int3(System.Double)Constructs a int3 vector from a single double value by converting it to int and assigning it to every component.
int3(System.Int32)Constructs a int3 vector from a single int value by assigning it to every component.
int3(System.Int32,System.Int32,System.Int32)Constructs a int3 vector from three int values.
int3(System.Int32,Unity.Mathematics.int2)Constructs a int3 vector from an int value and an int2 vector.
int3(System.Single)Constructs a int3 vector from a single float value by converting it to int and assigning it to every component.
int3(System.UInt32)Constructs a int3 vector from a single uint value by converting it to int and assigning it to every component.
int3(Unity.Mathematics.bool3)Constructs a int3 vector from a bool3 vector by componentwise conversion.
int3(Unity.Mathematics.double3)Constructs a int3 vector from a double3 vector by componentwise conversion.
int3(Unity.Mathematics.float3)Constructs a int3 vector from a float3 vector by componentwise conversion.
int3(Unity.Mathematics.int2,System.Int32)Constructs a int3 vector from an int2 vector and an int value.
int3(Unity.Mathematics.int3)Constructs a int3 vector from an int3 vector.
int3(Unity.Mathematics.uint3)Constructs a int3 vector from a uint3 vector by componentwise conversion.

Properties

Property

Description

this[]Returns the int element at a specified index.
xxSwizzles the vector.
xxxSwizzles the vector.
xxxxSwizzles the vector.
xxxySwizzles the vector.
xxxzSwizzles the vector.
xxySwizzles the vector.
xxyxSwizzles the vector.
xxyySwizzles the vector.
xxyzSwizzles the vector.
xxzSwizzles the vector.
xxzxSwizzles the vector.
xxzySwizzles the vector.
xxzzSwizzles the vector.
xySwizzles the vector.
xyxSwizzles the vector.
xyxxSwizzles the vector.
xyxySwizzles the vector.
xyxzSwizzles the vector.
xyySwizzles the vector.
xyyxSwizzles the vector.
xyyySwizzles the vector.
xyyzSwizzles the vector.
xyzSwizzles the vector.
xyzxSwizzles the vector.
xyzySwizzles the vector.
xyzzSwizzles the vector.
xzSwizzles the vector.
xzxSwizzles the vector.
xzxxSwizzles the vector.
xzxySwizzles the vector.
xzxzSwizzles the vector.
xzySwizzles the vector.
xzyxSwizzles the vector.
xzyySwizzles the vector.
xzyzSwizzles the vector.
xzzSwizzles the vector.
xzzxSwizzles the vector.
xzzySwizzles the vector.
xzzzSwizzles the vector.
yxSwizzles the vector.
yxxSwizzles the vector.
yxxxSwizzles the vector.
yxxySwizzles the vector.
yxxzSwizzles the vector.
yxySwizzles the vector.
yxyxSwizzles the vector.
yxyySwizzles the vector.
yxyzSwizzles the vector.
yxzSwizzles the vector.
yxzxSwizzles the vector.
yxzySwizzles the vector.
yxzzSwizzles the vector.
yySwizzles the vector.
yyxSwizzles the vector.
yyxxSwizzles the vector.
yyxySwizzles the vector.
yyxzSwizzles the vector.
yyySwizzles the vector.
yyyxSwizzles the vector.
yyyySwizzles the vector.
yyyzSwizzles the vector.
yyzSwizzles the vector.
yyzxSwizzles the vector.
yyzySwizzles the vector.
yyzzSwizzles the vector.
yzSwizzles the vector.
yzxSwizzles the vector.
yzxxSwizzles the vector.
yzxySwizzles the vector.
yzxzSwizzles the vector.
yzySwizzles the vector.
yzyxSwizzles the vector.
yzyySwizzles the vector.
yzyzSwizzles the vector.
yzzSwizzles the vector.
yzzxSwizzles the vector.
yzzySwizzles the vector.
yzzzSwizzles the vector.
zxSwizzles the vector.
zxxSwizzles the vector.
zxxxSwizzles the vector.
zxxySwizzles the vector.
zxxzSwizzles the vector.
zxySwizzles the vector.
zxyxSwizzles the vector.
zxyySwizzles the vector.
zxyzSwizzles the vector.
zxzSwizzles the vector.
zxzxSwizzles the vector.
zxzySwizzles the vector.
zxzzSwizzles the vector.
zySwizzles the vector.
zyxSwizzles the vector.
zyxxSwizzles the vector.
zyxySwizzles the vector.
zyxzSwizzles the vector.
zyySwizzles the vector.
zyyxSwizzles the vector.
zyyySwizzles the vector.
zyyzSwizzles the vector.
zyzSwizzles the vector.
zyzxSwizzles the vector.
zyzySwizzles the vector.
zyzzSwizzles the vector.
zzSwizzles the vector.
zzxSwizzles the vector.
zzxxSwizzles the vector.
zzxySwizzles the vector.
zzxzSwizzles the vector.
zzySwizzles the vector.
zzyxSwizzles the vector.
zzyySwizzles the vector.
zzyzSwizzles the vector.
zzzSwizzles the vector.
zzzxSwizzles the vector.
zzzySwizzles the vector.
zzzzSwizzles the vector.

Methods

Method

Description

EqualsReturns true if the int3 is equal to a given int3, false otherwise.
GetHashCodeReturns a hash code for the int3.
ToStringReturns a string representation of the int3.

Operators

Operator

Description

operator +Returns the result of a componentwise addition operation on an int value and an int3 vector.
operator &Returns the result of a componentwise bitwise and operation on an int value and an int3 vector.
operator |Returns the result of a componentwise bitwise or operation on an int value and an int3 vector.
operator --Returns the result of a componentwise decrement operation on an int3 vector.
operator /Returns the result of a componentwise division operation on an int value and an int3 vector.
operator ==Returns the result of a componentwise equality operation on an int value and an int3 vector.
operator ^Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3 vector.
int3Explicitly converts a single bool value to a int3 vector by converting it to int and assigning it to every component.
operator >Returns the result of a componentwise greater than operation on an int value and an int3 vector.
operator >=Returns the result of a componentwise greater or equal operation on an int value and an int3 vector.
operator ++Returns the result of a componentwise increment operation on an int3 vector.
operator !=Returns the result of a componentwise not equal operation on an int value and an int3 vector.
operator <<Returns the result of a componentwise left shift operation on an int3 vector by a number of bits specified by a single int.
operator <Returns the result of a componentwise less than operation on an int value and an int3 vector.
operator <=Returns the result of a componentwise less or equal operation on an int value and an int3 vector.
operator %Returns the result of a componentwise modulus operation on an int value and an int3 vector.
operator *Returns the result of a componentwise multiplication operation on an int value and an int3 vector.
operator ~Returns the result of a componentwise bitwise not operation on an int3 vector.
operator >>Returns the result of a componentwise right shift operation on an int3 vector by a number of bits specified by a single int.
operator -Returns the result of a componentwise subtraction operation on an int value and an int3 vector.