Class Vector2IntExtensions
  
  
  
    Inheritance
    
    Vector2IntExtensions
   
  
  
  Syntax
  
    public static class Vector2IntExtensions
   
  Methods
  
  GetRelativeNeighbours(Vector2Int, bool)
  
  
  Declaration
  
    public static Vector2Int[] GetRelativeNeighbours(this Vector2Int vector, bool hexagonal = false)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Vector2Int | vector |  | 
      
        | bool | hexagonal |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Vector2Int[] |  | 
    
  
  
  ManhattanDistance(Vector2Int, Vector2)
  
  
  Declaration
  
    public static float ManhattanDistance(this Vector2Int a, Vector2 b)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Vector2Int | a |  | 
      
        | Vector2 | b |  | 
    
  
  Returns
  
  
  ManhattanDistance(Vector2Int, Vector2Int)
  
  
  Declaration
  
    public static int ManhattanDistance(this Vector2Int a, Vector2Int b)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Vector2Int | a |  | 
      
        | Vector2Int | b |  | 
    
  
  Returns
  
  
  RotateAround(Vector2Int, Vector2, float)
  
  
  Declaration
  
    public static Vector2Int RotateAround(this Vector2Int v, Vector2 rotateAround, float angle)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Vector2Int | v |  | 
      
        | Vector2 | rotateAround |  | 
      
        | float | angle |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Vector2Int |  | 
    
  
  
  SquareToCube(Vector2Int)
  
  
  Declaration
  
    public static Vector3 SquareToCube(this Vector2Int squareVector)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Vector2Int | squareVector |  | 
    
  
  Returns