ProjectDDD/Packages/com.arongranberg.astar/Core/Geometry/Vector2IntExtensions.cs
2025-07-08 19:46:31 +09:00

12 lines
319 B
C#

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);
}
}
}