aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/RealTimeGraphX.WPF/ExtensionMethods/RectExtensions.cs
blob: 2263870c33750ec8becad73709434440cc4a33c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using RealTimeGraphX;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

internal static class RectExtensions
{
    public static GraphRect ToGraphRect(this Rect rect)
    {
        return new GraphRect(rect.Left, rect.Top, rect.Width, rect.Height);
    }

    public static Rect ToWpfRect(this GraphRect rect)
    {
        return new Rect(rect.Left, rect.Top, rect.Width, rect.Height);
    }
}