Struct Vector2Int
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
Properties
|
Improve this Doc
View Source
down
Declaration
public static Vector2Int down { get; }
Property Value
|
Improve this Doc
View Source
Item[Int32]
Declaration
public int this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
|
Improve this Doc
View Source
left
Declaration
public static Vector2Int left { get; }
Property Value
|
Improve this Doc
View Source
magnitude
Declaration
public float magnitude { get; }
Property Value
|
Improve this Doc
View Source
one
Declaration
public static Vector2Int one { get; }
Property Value
|
Improve this Doc
View Source
right
Declaration
public static Vector2Int right { get; }
Property Value
|
Improve this Doc
View Source
sqrMagnitude
Declaration
public int sqrMagnitude { get; }
Property Value
|
Improve this Doc
View Source
up
Declaration
public static Vector2Int up { get; }
Property Value
|
Improve this Doc
View Source
x
Declaration
public int x { get; set; }
Property Value
|
Improve this Doc
View Source
y
Declaration
public int y { get; set; }
Property Value
|
Improve this Doc
View Source
zero
Declaration
public static Vector2Int zero { get; }
Property Value
Methods
|
Improve this Doc
View Source
CeilToInt(Vector2)
Declaration
public static Vector2Int CeilToInt(Vector2 v)
Parameters
Returns
|
Improve this Doc
View Source
Clamp(Vector2Int, Vector2Int)
Declaration
public void Clamp(Vector2Int min, Vector2Int max)
Parameters
|
Improve this Doc
View Source
Distance(Vector2Int, Vector2Int)
Declaration
public static float Distance(Vector2Int a, Vector2Int b)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Overrides
|
Improve this Doc
View Source
Equals(Vector2Int)
Declaration
public bool Equals(Vector2Int other)
Parameters
Returns
|
Improve this Doc
View Source
FloorToInt(Vector2)
Declaration
public static Vector2Int FloorToInt(Vector2 v)
Parameters
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
Max(Vector2Int, Vector2Int)
Declaration
public static Vector2Int Max(Vector2Int lhs, Vector2Int rhs)
Parameters
Returns
|
Improve this Doc
View Source
Min(Vector2Int, Vector2Int)
Declaration
public static Vector2Int Min(Vector2Int lhs, Vector2Int rhs)
Parameters
Returns
|
Improve this Doc
View Source
RoundToInt(Vector2)
Declaration
public static Vector2Int RoundToInt(Vector2 v)
Parameters
Returns
|
Improve this Doc
View Source
Scale(Vector2Int)
Declaration
public void Scale(Vector2Int scale)
Parameters
|
Improve this Doc
View Source
Scale(Vector2Int, Vector2Int)
Declaration
public static Vector2Int Scale(Vector2Int a, Vector2Int b)
Parameters
Returns
|
Improve this Doc
View Source
Set(Int32, Int32)
Declaration
public void Set(int x, int y)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Addition(Vector2Int, Vector2Int)
Declaration
public static Vector2Int operator +(Vector2Int a, Vector2Int b)
Parameters
Returns
|
Improve this Doc
View Source
Equality(Vector2Int, Vector2Int)
Declaration
public static bool operator ==(Vector2Int lhs, Vector2Int rhs)
Parameters
Returns
|
Improve this Doc
View Source
Explicit(Vector2Int to Vector3Int)
Declaration
public static explicit operator Vector3Int(Vector2Int v)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(Vector2Int to Vector2)
Declaration
public static implicit operator Vector2(Vector2Int v)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(Vector2Int, Vector2Int)
Declaration
public static bool operator !=(Vector2Int lhs, Vector2Int rhs)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Vector2Int, Int32)
Declaration
public static Vector2Int operator *(Vector2Int a, int b)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Vector2Int, Vector2Int)
Declaration
public static Vector2Int operator *(Vector2Int a, Vector2Int b)
Parameters
Returns
|
Improve this Doc
View Source
Subtraction(Vector2Int, Vector2Int)
Declaration
public static Vector2Int operator -(Vector2Int a, Vector2Int b)
Parameters
Returns
Implements
Extension Methods