Class Vector2IntExtensions
Inheritance
object
Vector2IntExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.Extensions
Syntax
public static class Vector2IntExtensions
Methods
ManhattanDistance(Vector2Int, Vector2)
Declaration
public static float ManhattanDistance(this Vector2Int a, Vector2 b)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector2Int | a | |
UnityEngine.Vector2 | b |
Returns
Type | Description |
---|---|
float |
ManhattanDistance(Vector2Int, Vector2Int)
Declaration
public static int ManhattanDistance(this Vector2Int a, Vector2Int b)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector2Int | a | |
UnityEngine.Vector2Int | b |
Returns
Type | Description |
---|---|
int |
RotateAround(Vector2Int, Vector2, float)
Declaration
public static Vector2Int RotateAround(this Vector2Int v, Vector2 rotateAround, float angle)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector2Int | v | |
UnityEngine.Vector2 | rotateAround | |
float | angle |
Returns
Type | Description |
---|---|
UnityEngine.Vector2Int |