Exemple #1
0
        public static float ClassFloat(PointClassFloat pointOne, PointClassFloat pointTwo)
        {
            float x = pointOne.X - pointTwo.X;
            float y = pointOne.Y - pointTwo.Y;

            return(MathF.Sqrt((x * x) + (y * y)));
        }
Exemple #2
0
        public void TestClassFloat()
        {
            PointClassFloat pointOne = new PointClassFloat();

            pointOne.X = TestFloat;

            pointOne.Y = TestFloat;

            PointClassFloat pointTwo = new PointClassFloat();

            pointOne.X = TestFloat2;

            pointOne.Y = TestFloat2;

            ClassFloat(pointOne, pointTwo);
        }