XAML-Map-Control/MapControl/Shared/Scale.cs
ClemensFischer 218a85316c Reworked MapProjection
Return nullable Point from LocationToMap. Use MapRect instead of WinUI/UWP Rect replacement. Drop Vector. Add Scale struct.
2022-12-02 16:50:10 +01:00

24 lines
519 B
C#

// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
// © 2022 Clemens Fischer
// Licensed under the Microsoft Public License (Ms-PL)
namespace MapControl
{
public struct Scale
{
public Scale(double x, double y)
{
X = x;
Y = y;
}
public double X { get; set; }
public double Y { get; set; }
public static Scale operator *(double f, Scale v)
{
return new Scale(f * v.X, f * v.Y);
}
}
}