Class Vector2IntExtensions
Inheritance
System.Object
Vector2IntExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 |
---|---|
System.Single |
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 |
---|---|
System.Int32 |
RotateAround(Vector2Int, Vector2, Single)
Declaration
public static Vector2Int RotateAround(this Vector2Int v, Vector2 rotateAround, float angle)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector2Int | v | |
UnityEngine.Vector2 | rotateAround | |
System.Single | angle |
Returns
Type | Description |
---|---|
UnityEngine.Vector2Int |