mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
24 lines
519 B
C#
24 lines
519 B
C#
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
|||
|
|
// <20> 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);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|