Transform tool - Finished initial implementation

This commit is contained in:
Robert committed 2022-02-13 21:19:32 +01:00
1 parent 1716eba8ec
commit 32ebf5f000
36 files changed
+1094 -499

No files matched your search

@@ -420,7 +420,10 @@ namespace Artemis.UI.Screens.ProfileEditor.Visualization.Tools
private static SKPoint RoundPoint(SKPoint point, int decimals)
{
return new((float) Math.Round(point.X, decimals, MidpointRounding.AwayFromZero), (float) Math.Round(point.Y, decimals, MidpointRounding.AwayFromZero));
return new SKPoint(
(float) Math.Round(point.X, decimals, MidpointRounding.AwayFromZero),
(float) Math.Round(point.Y, decimals, MidpointRounding.AwayFromZero)
);
}
private static SKPoint[] UnTransformPoints(SKPoint[] skPoints, Layer layer, SKPoint pivot, bool includeScale)