using Rect, Vertex, Point in windowsbase.dll: better performance compared to the usual ?
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I have been studying, and experimenting (in WinForms), with the newer structures (.NET 5.0) Vector, Rect, and Point in System.Windows (requires WindowsBase.dll). They offer some useful extended functionality compared to the Point/PointF and Rectangle/RectangleF structures in System.Drawing. They're Double based, so they will play nicely with the result of Math operators like Sin, Cos, Pow. I intend to rewrite the 2d geometry library I am developing using those structures, and, when ready, publish it here; if you have used these structures, how have you found memory use and performance ? thanks !
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch