Files
winformGraphs/TestWinFormsDataVis/TwoPoints.cs
2021-03-25 22:24:49 +01:00

27 lines
565 B
C#

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestWinFormsDataVis
{
public class TwoPoints
{
public int X1 { get; set; }
public int Y1 { get; set; }
public int X2 { get; set; }
public int Y2 { get; set; }
public Point[] drwPoints(int posShift = 0)
{
return new Point[] {
new Point(X1+posShift,Y1),
new Point(X2+posShift,Y2)
};
}
}
}