mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-26 20:01:05 -04:00
Move math utilities to OpenNest.Math namespace
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
2210f60656
commit
8d9aebb83f
40 files changed
+172
-140
No files matched your search
@@ -63,7 +63,7 @@ namespace OpenNest.Controls
|
||||
var bounds = dwg.Program.BoundingBox();
|
||||
var text1 = string.Format("{0} of {1} nested", dwg.Quantity.Nested, dwg.Quantity.Required);
|
||||
var text2 = bounds.Size.ToString(4);
|
||||
var text3 = string.Format("{0} sq/{1}", Math.Round(dwg.Area, 4), UnitsHelper.GetShortString(Units));
|
||||
var text3 = string.Format("{0} sq/{1}", System.Math.Round(dwg.Area, 4), UnitsHelper.GetShortString(Units));
|
||||
|
||||
pt.Y += 22;
|
||||
e.Graphics.DrawString(text1, Font, Brushes.Gray, pt);
|
||||
@@ -100,7 +100,7 @@ namespace OpenNest.Controls
|
||||
var x = pt2.X - pt1.X;
|
||||
var y = pt2.Y - pt1.Y;
|
||||
|
||||
return Math.Sqrt(x * x + y * y);
|
||||
return System.Math.Sqrt(x * x + y * y);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user