11 lines
293 B
C#
11 lines
293 B
C#
using System.Numerics;
|
|
using Silk.NET.Maths;
|
|
|
|
namespace SilkWindows;
|
|
|
|
internal static class VectorExtensions
|
|
{
|
|
public static Vector2 ToVector2(this Vector2D<int> v) => new(v.X, v.Y);
|
|
|
|
public static Vector2D<int> ToVector2DInt(this Vector2 v) => new((int)v.X, (int)v.Y);
|
|
} |