mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
24 lines
532 B
C#
24 lines
532 B
C#
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
|
// Copyright © 2024 Clemens Fischer
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
namespace MapControl
|
|
{
|
|
public readonly struct Scale
|
|
{
|
|
public Scale(double x, double y)
|
|
{
|
|
X = x;
|
|
Y = y;
|
|
}
|
|
|
|
public double X { get; }
|
|
public double Y { get; }
|
|
|
|
public static Scale operator *(double f, Scale v)
|
|
{
|
|
return new Scale(f * v.X, f * v.Y);
|
|
}
|
|
}
|
|
}
|