Exemple #1
0
        public double line_length(MyPoint p1, MyPoint p2)//פעולה המחזירה את אורך הישר
        {
            double length = Math.Sqrt(Math.Pow((p1.Get_X() - p2.Get_X()), 2) + Math.Pow((p1.Get_Y() - p2.Get_Y()), 2));

            return(length);
        }