Пример #1
0
        public static float test4distanceShort(PointStructF pointOne, PointStructF pointTwo)
        {
            float x = pointOne.X - pointTwo.X;
            float y = pointOne.Y - pointTwo.Y;

            return((x * x) + (y * y));
        }
Пример #2
0
        public static float test2distanceStruct(PointStructF pointOne, PointStructF pointTwo)
        {
            float x = pointOne.X - pointTwo.X;
            float y = pointOne.Y - pointTwo.Y;

            return((float)Math.Sqrt((x * x) + (y * y)));
        }