Class Vector2Extensions
Inheritance
Vector2Extensions
Syntax
public static class Vector2Extensions
Methods
FloorToInt(Vector2)
Declaration
public static Vector2Int FloorToInt(this Vector2 v)
Parameters
Type |
Name |
Description |
Vector2 |
v |
|
Returns
Type |
Description |
Vector2Int |
|
ManhattanDistance(Vector2, Vector2)
Declaration
public static float ManhattanDistance(this Vector2 a, Vector2 b)
Parameters
Type |
Name |
Description |
Vector2 |
a |
|
Vector2 |
b |
|
Returns
ManhattanDistance(Vector2, Vector2Int)
Declaration
public static float ManhattanDistance(this Vector2 a, Vector2Int b)
Parameters
Type |
Name |
Description |
Vector2 |
a |
|
Vector2Int |
b |
|
Returns
RotateAround(Vector2, Vector2, float)
Declaration
public static Vector2 RotateAround(this Vector2 v, Vector2 rotateAround, float angle)
Parameters
Type |
Name |
Description |
Vector2 |
v |
|
Vector2 |
rotateAround |
|
float |
angle |
|
Returns
RoundToInt(Vector2)
Declaration
public static Vector2Int RoundToInt(this Vector2 v)
Parameters
Type |
Name |
Description |
Vector2 |
v |
|
Returns
Type |
Description |
Vector2Int |
|