We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04af0b1 commit 398ff3aCopy full SHA for 398ff3a
1 file changed
src/TSMapEditor/Rendering/Camera.cs
@@ -84,7 +84,7 @@ public double ZoomLevel
84
85
public int ScaleIntWithZoom(int value) => (int)(value * ZoomLevel);
86
87
- public Point2D ScalePointWithZoom(Point2D value) => new Point2D((int)(value.X * ZoomLevel), (int)(value.Y * ZoomLevel));
+ public Point2D ScalePointWithZoom(Point2D value) => value.ScaleBy(ZoomLevel);
88
89
public void CenterOnCell(Point2D cellCoords)
90
{
0 commit comments