ProjectDDD/Packages/com.arongranberg.astar/Core/Geometry/Vector2IntExtensions.cs

12 lines
319 B
C#
Raw Normal View History

using UnityEngine;
using Unity.Mathematics;
namespace Pathfinding {
public static class Vector2IntExtensions {
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
public static int2 ToInt2 (this Vector2Int v) {
return new int2(v.x, v.y);
}
}
}