using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InABox.Dxf; internal static class Utils { public static PointF Transform(this Matrix matrix, PointF point) { var arr = new[] { point }; matrix.TransformPoints(arr); return arr[0]; } public static PointF TransformVector(this Matrix matrix, PointF point) { var arr = new[] { point }; matrix.TransformVectors(arr); return arr[0]; } public static float Mod(float x, float y) { return (float)(x - y * Math.Floor(x / y)); } }