NumericsExtensions
using System.Numerics;
namespace System.Drawing
{
internal static class NumericsExtensions
{
internal static void Translate(ref Matrix3x2 matrix, Vector2 offset)
{
matrix.M31 += offset.X * matrix.M11 + offset.Y * matrix.M21;
matrix.M32 += offset.X * matrix.M12 + offset.Y * matrix.M22;
}
internal static bool IsEmpty(this Vector2 vector)
{
if (vector.X == 0)
return vector.Y == 0;
return false;
}
}
}