Replaced MapRect and Scale by Rect and Point

This commit is contained in:
ClemensFischer 2024-05-19 17:24:18 +02:00
parent dd62545b41
commit 7e18b6b984
32 changed files with 256 additions and 238 deletions

View file

@ -7,7 +7,7 @@ namespace MapControl
/// <summary>
/// Replaces Windows.Foundation.Point for double floating point precision.
/// </summary>
public struct Point
public readonly struct Point
{
public Point(double x, double y)
{
@ -15,8 +15,8 @@ namespace MapControl
Y = y;
}
public double X { get; set; }
public double Y { get; set; }
public double X { get; }
public double Y { get; }
public static implicit operator Windows.Foundation.Point(Point p)
{