Vector2Int

A two-dimensional integer-type vector.

# Properties

[{"index":"int32 x","0":"The x-axis value of the vector."}]

[{"index":"int32 y","0":"The x-axis value of the vector."}]

[{"index":"Vector2Int down (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector2Int(0, -1)."}]

[{"index":"Vector2Int left (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector2Int(-1, 0)."}]

[{"index":"Vector2Int one (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector2Int(1, 1)."}]

[{"index":"Vector2Int right (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector2Int(1, 0)."}]

[{"index":"Vector2Int up (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector2Int(0, 1)."}]

[{"index":"Vector2Int zero (Static) (ReadOnly) (HideFromInspector)","0":"You can simply use Vector2Int(0, 0)."}]

# Constructors

[{"index":"Vector2Int(int32 x, int32 y)","0":"Initializes Vector2Int to the specified value."}]

# Methods

[{"index":"float Angle(Vector2Int b)","0":"Finds the angle between two Vectors. Returns values between 0 to 180."}]

[{"index":"Vector2Int Clone()","0":"Generates a copy."}]

[{"index":"float Distance(Vector2Int b)","0":"Finds the distance between two Vectors."}]

[{"index":"float Magnitude()","0":"Finds the size of a Vector."}]

[{"index":"float SignedAngle(Vector2Int to)","0":"Finds the angle between two Vectors. If the angle relative to from is counterclockwise, the value is a positive number; if the angle is clockwise, the value is a negative number. Returns values between -180 to 180."}]

[{"index":"float SqrMagnitude()","0":"Finds the square of the size of a Vector."}]

[{"index":"Vector2 ToVector2()","0":"Creates a Vector2 entity with x and y elements, and then returns it."}]

[{"index":"float Angle(Vector2Int a, Vector2Int b) (Static)","0":"Finds the angle between two Vectors. Returns values between 0 to 180."}]

[{"index":"float Distance(Vector2Int a, Vector2Int b) (Static)","0":"Finds the distance between two Vectors."}]

[{"index":"float Magnitude(Vector2Int a) (Static)","0":"Finds the size of a Vector."}]

[{"index":"float SignedAngle(Vector2Int from, Vector2Int to) (Static)","0":"Finds the angle between two Vectors. If the angle relative to from is counterclockwise, the value is a positive number; if the angle is clockwise, the value is a negative number. Returns values between -180 to 180."}]

[{"index":"float SqrMagnitude(Vector2Int a) (Static)","0":"Finds the square of the size of a Vector."}]

[{"index":"Vector2 ToVector2(Vector2Int a) (Static)","0":"Returns a new Vector2 entity that has x and y elements."}]

# Operators

[{"index":"Vector2Int Addition(Vector2Int left, Vector2Int right) (Static)","0":"Returns a new Vector2 entity that has x and y elements."}]

[{"index":"Vector2Int Division(Vector2Int left, int32 right) (Static)","0":"Returns a new Vector2Int entity by dividing the vector by a real number."}]

[{"index":"Vector2Int Division(Vector2Int left, Vector2Int right) (Static)","0":"Returns a new Vector2Int entity by dividing the specified left value by the right value. The calculation result is Vector2Int(left.x \/ right.x, left.y \/ right.y)."}]

[{"index":"boolean Equality(Vector2Int left, Vector2Int right) (Static)","0":"Checks if the two vectors are the same. Returns true if they're the same. Otherwise, returns false."}]

[{"index":"boolean Inequality(Vector2Int left, Vector2Int right) (Static)","0":"Checks if the two vectors are different. Returns false if they're the same. Otherwise, returns true."}]

[{"index":"Vector2Int Multiply(int32 left, Vector2Int right) (Static)","0":"Returns a new Vector2Int entity by multiplying the vector by a real number."}]

[{"index":"Vector2Int Multiply(Vector2Int left, int32 right) (Static)","0":"Returns a new Vector2Int entity by multiplying the vector by a real number."}]

[{"index":"Vector2Int Multiply(Vector2Int left, Vector2Int right) (Static)","0":"Returns a new Vector2Int entity by multiplying the values. The calculation result is Vector2Int(left.x * right.x, left.y * right.y)."}]

[{"index":"Vector2Int Subtraction(Vector2Int left, Vector2Int right) (Static)","0":"Returns a new Vector2Int entity obtained by subtracting two vectors."}]

[{"index":"Vector2Int UnaryNegation(Vector2Int value) (Static)","0":"Returns a new Vector2Int entity that represents a reversed vector."}]