예제 #1
0
        //----------------------------------------------------------------------------------------------
        //Максимальные координаты точек
        public static double[] GetMaximalCoordinates(Point3D[] points)
        {
            double[] coordinatesX = SpaceManager.GetCoordinatesX(points);
            double[] coordinatesY = SpaceManager.GetCoordinatesY(points);
            double[] coordinatesZ = SpaceManager.GetCoordinatesZ(points);

            double maxX = coordinatesX.Max();
            double maxY = coordinatesY.Max();
            double maxZ = coordinatesZ.Max();

            double[] maximalCoordinates = new double[] { maxX, maxY, maxZ };
            return(maximalCoordinates);
        }
예제 #2
0
        //----------------------------------------------------------------------------------------------
        //Минимальные координаты точек
        public static double[] GetMinimalCoordinates(Point3D[] points)
        {
            double[] coordinatesX = SpaceManager.GetCoordinatesX(points);
            double[] coordinatesY = SpaceManager.GetCoordinatesY(points);
            double[] coordinatesZ = SpaceManager.GetCoordinatesZ(points);

            double minX = coordinatesX.Min();
            double minY = coordinatesY.Min();
            double minZ = coordinatesZ.Min();

            double[] minimalCoordinates = new double[] { minX, minY, minZ };
            return(minimalCoordinates);
        }