Show / Hide Table of Contents

Struct Vector2Int

Implements
IEquatable<Vector2Int>
Inherited Members
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public struct Vector2Int : IEquatable<Vector2Int>

Constructors

| Improve this Doc View Source

Vector2Int(Int32, Int32)

Declaration
public Vector2Int(int x, int y)
Parameters
Type Name Description
Int32 x
Int32 y

Properties

| Improve this Doc View Source

down

Declaration
public static Vector2Int down { get; }
Property Value
Type Description
Vector2Int
| Improve this Doc View Source

Item[Int32]

Declaration
public int this[int index] { get; set; }
Parameters
Type Name Description
Int32 index
Property Value
Type Description
Int32
| Improve this Doc View Source

left

Declaration
public static Vector2Int left { get; }
Property Value
Type Description
Vector2Int
| Improve this Doc View Source

magnitude

Declaration
public float magnitude { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

one

Declaration
public static Vector2Int one { get; }
Property Value
Type Description
Vector2Int
| Improve this Doc View Source

right

Declaration
public static Vector2Int right { get; }
Property Value
Type Description
Vector2Int
| Improve this Doc View Source

sqrMagnitude

Declaration
public int sqrMagnitude { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

up

Declaration
public static Vector2Int up { get; }
Property Value
Type Description
Vector2Int
| Improve this Doc View Source

x

Declaration
public int x { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

y

Declaration
public int y { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

zero

Declaration
public static Vector2Int zero { get; }
Property Value
Type Description
Vector2Int

Methods

| Improve this Doc View Source

CeilToInt(Vector2)

Declaration
public static Vector2Int CeilToInt(Vector2 v)
Parameters
Type Name Description
Vector2 v
Returns
Type Description
Vector2Int
| Improve this Doc View Source

Clamp(Vector2Int, Vector2Int)

Declaration
public void Clamp(Vector2Int min, Vector2Int max)
Parameters
Type Name Description
Vector2Int min
Vector2Int max
| Improve this Doc View Source

Distance(Vector2Int, Vector2Int)

Declaration
public static float Distance(Vector2Int a, Vector2Int b)
Parameters
Type Name Description
Vector2Int a
Vector2Int b
Returns
Type Description
Single
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
Object other
Returns
Type Description
Boolean
Overrides
ValueType.Equals(Object)
| Improve this Doc View Source

Equals(Vector2Int)

Declaration
public bool Equals(Vector2Int other)
Parameters
Type Name Description
Vector2Int other
Returns
Type Description
Boolean
| Improve this Doc View Source

FloorToInt(Vector2)

Declaration
public static Vector2Int FloorToInt(Vector2 v)
Parameters
Type Name Description
Vector2 v
Returns
Type Description
Vector2Int
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
ValueType.GetHashCode()
| Improve this Doc View Source

Max(Vector2Int, Vector2Int)

Declaration
public static Vector2Int Max(Vector2Int lhs, Vector2Int rhs)
Parameters
Type Name Description
Vector2Int lhs
Vector2Int rhs
Returns
Type Description
Vector2Int
| Improve this Doc View Source

Min(Vector2Int, Vector2Int)

Declaration
public static Vector2Int Min(Vector2Int lhs, Vector2Int rhs)
Parameters
Type Name Description
Vector2Int lhs
Vector2Int rhs
Returns
Type Description
Vector2Int
| Improve this Doc View Source

RoundToInt(Vector2)

Declaration
public static Vector2Int RoundToInt(Vector2 v)
Parameters
Type Name Description
Vector2 v
Returns
Type Description
Vector2Int
| Improve this Doc View Source

Scale(Vector2Int)

Declaration
public void Scale(Vector2Int scale)
Parameters
Type Name Description
Vector2Int scale
| Improve this Doc View Source

Scale(Vector2Int, Vector2Int)

Declaration
public static Vector2Int Scale(Vector2Int a, Vector2Int b)
Parameters
Type Name Description
Vector2Int a
Vector2Int b
Returns
Type Description
Vector2Int
| Improve this Doc View Source

Set(Int32, Int32)

Declaration
public void Set(int x, int y)
Parameters
Type Name Description
Int32 x
Int32 y
| Improve this Doc View Source

ToString()

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

Operators

| Improve this Doc View Source

Addition(Vector2Int, Vector2Int)

Declaration
public static Vector2Int operator +(Vector2Int a, Vector2Int b)
Parameters
Type Name Description
Vector2Int a
Vector2Int b
Returns
Type Description
Vector2Int
| Improve this Doc View Source

Equality(Vector2Int, Vector2Int)

Declaration
public static bool operator ==(Vector2Int lhs, Vector2Int rhs)
Parameters
Type Name Description
Vector2Int lhs
Vector2Int rhs
Returns
Type Description
Boolean
| Improve this Doc View Source

Explicit(Vector2Int to Vector3Int)

Declaration
public static explicit operator Vector3Int(Vector2Int v)
Parameters
Type Name Description
Vector2Int v
Returns
Type Description
Vector3Int
| Improve this Doc View Source

Implicit(Vector2Int to Vector2)

Declaration
public static implicit operator Vector2(Vector2Int v)
Parameters
Type Name Description
Vector2Int v
Returns
Type Description
Vector2
| Improve this Doc View Source

Inequality(Vector2Int, Vector2Int)

Declaration
public static bool operator !=(Vector2Int lhs, Vector2Int rhs)
Parameters
Type Name Description
Vector2Int lhs
Vector2Int rhs
Returns
Type Description
Boolean
| Improve this Doc View Source

Multiply(Vector2Int, Int32)

Declaration
public static Vector2Int operator *(Vector2Int a, int b)
Parameters
Type Name Description
Vector2Int a
Int32 b
Returns
Type Description
Vector2Int
| Improve this Doc View Source

Multiply(Vector2Int, Vector2Int)

Declaration
public static Vector2Int operator *(Vector2Int a, Vector2Int b)
Parameters
Type Name Description
Vector2Int a
Vector2Int b
Returns
Type Description
Vector2Int
| Improve this Doc View Source

Subtraction(Vector2Int, Vector2Int)

Declaration
public static Vector2Int operator -(Vector2Int a, Vector2Int b)
Parameters
Type Name Description
Vector2Int a
Vector2Int b
Returns
Type Description
Vector2Int

Implements

System.IEquatable<T>

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX