27 lines
565 B
C#
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)
|
|
};
|
|
}
|
|
|
|
}
|
|
}
|