Class Vector2Extensions
Inheritance
object
Vector2Extensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Syntax
public static class Vector2Extensions
Methods
FloorToInt(Vector2)
Declaration
public static Vector2Int FloorToInt(this Vector2 v)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2 |
v |
|
Returns
Type |
Description |
UnityEngine.Vector2Int |
|
ManhattanDistance(Vector2, Vector2)
Declaration
public static float ManhattanDistance(this Vector2 a, Vector2 b)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2 |
a |
|
UnityEngine.Vector2 |
b |
|
Returns
ManhattanDistance(Vector2, Vector2Int)
Declaration
public static float ManhattanDistance(this Vector2 a, Vector2Int b)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2 |
a |
|
UnityEngine.Vector2Int |
b |
|
Returns
RotateAround(Vector2, Vector2, float)
Declaration
public static Vector2 RotateAround(this Vector2 v, Vector2 rotateAround, float angle)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2 |
v |
|
UnityEngine.Vector2 |
rotateAround |
|
float |
angle |
|
Returns
Type |
Description |
UnityEngine.Vector2 |
|
RoundToInt(Vector2)
Declaration
public static Vector2Int RoundToInt(this Vector2 v)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2 |
v |
|
Returns
Type |
Description |
UnityEngine.Vector2Int |
|