mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-07 10:10:49 +08:00
23 lines
527 B
C#
23 lines
527 B
C#
|
|
using Windows.Foundation;
|
|||
|
|
|
|||
|
|
namespace LiveCharts.Uwp.Points
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
///
|
|||
|
|
/// </summary>
|
|||
|
|
public static class PointExtensions
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Offsets the specified x.
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="point">The point.</param>
|
|||
|
|
/// <param name="x">The x.</param>
|
|||
|
|
/// <param name="y">The y.</param>
|
|||
|
|
public static void Offset(this Point point, double x, double y)
|
|||
|
|
{
|
|||
|
|
point.X += x;
|
|||
|
|
point.Y += y;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|