using System.Diagnostics.Contracts; using System.Drawing; using System.Runtime.CompilerServices; using UnityEngine; namespace X10D.Unity.Drawing; /// /// Drawing-related extension methods for . /// public static class PointFExtensions { /// /// Converts the current to a . /// /// The point to convert. /// The resulting . [Pure] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Vector2 ToUnityVector2(this PointF point) { return new Vector2(point.X, point.Y); } }