mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Transform tool - Finished initial implementation
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user