using System.Drawing;
namespace EnvelopeGenerator.Application.Common.Extensions;
///
///
///
public static class MathematExtensions
{
///
///
///
///
///
public static PointF ToPointF(this List points)
{
var pointsInch = points.Select(ToInches).ToList();
return new PointF(pointsInch[0], pointsInch[1]);
}
///
///
///
///
///
public static double ToInches(this double value)
{
return value / 72.0;
}
///
///
///
///
///
public static float ToInches(this float value)
{
return value / 72f;
}
}