示例#1
0
文件: HCData.cs 项目: lionsoon/HCWpf
        public static HCCluster FromSinglePoint(HCPoint point)
        {
            List <HCPoint> pointList = new();

            pointList.Add(point);
            return(new(pointList));
        }
示例#2
0
文件: Metric.cs 项目: lionsoon/HCWpf
 public static double Euclid(HCPoint a, HCPoint b)
 {
     return(Math.Sqrt((a.X - b.X) * (a.X - b.X) + (a.Y - b.Y) * (a.Y - b.Y)));
 }