inz-00/Assets/Common/Point.cs
2019-08-15 20:22:18 +02:00

21 lines
389 B
C#

using System;
namespace Assets.Common
{
public class Point
{
public double x;
public double y;
public Point(double x, double y)
{
this.x = x;
this.y = y;
}
public static double Dist(Point a, Point b)
{
return Math.Sqrt(Math.Pow(a.x - b.x, 2) + Math.Pow(a.y - b.y, 2));
}
}
}