Spg.BasicDemo/Model/Point.cs

19 lines
368 B
C#
Raw Permalink Normal View History

2022-09-26 16:37:42 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spg.BasicDemo.Model
{
internal class Point
{
public int x { get; set; }
public int y { get; set; }
public int CalcDistance(Point otherPoint)
{
return x - otherPoint.x;
}
}
}