Minor improvements

This commit is contained in:
ClemensFischer 2022-12-04 20:10:00 +01:00
parent fe1ac924b4
commit 7b69215a30
3 changed files with 17 additions and 11 deletions

View file

@ -10,7 +10,7 @@ using System.Windows;
namespace MapControl
{
/// <summary>
/// Map rectangle with double floating point precision, unlike Windows.Foundation.Rect does.
/// Map rectangle with double floating point precision, in contrast to Windows.Foundation.Rect.
/// Used by MapProjection to convert geodetic bounding boxes to/from projected map coordinates.
/// </summary>
public class MapRect

View file

@ -4,7 +4,7 @@
namespace MapControl
{
public struct Scale
public readonly struct Scale
{
public Scale(double x, double y)
{
@ -12,8 +12,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 Scale operator *(double f, Scale v)
{