AgGateway.ADAPT.ISOv4Plugin.Writers.GridWriter.GetCellWidth C# (CSharp) Метод

GetCellWidth() приватный статический Метод

private static GetCellWidth ( AgGateway.ADAPT.ApplicationDataModel.Prescriptions.RasterGridPrescription prescription ) : double
prescription AgGateway.ADAPT.ApplicationDataModel.Prescriptions.RasterGridPrescription
Результат double
        private static double GetCellWidth(RasterGridPrescription prescription)
        {
            var cellWidth = 0.0;
            if (prescription.CellWidth != null)
                cellWidth = prescription.CellWidth.Value.Value;
            if (prescription.BoundingBox != null && prescription.BoundingBox.MinX != null && prescription.BoundingBox.MaxX != null)
                cellWidth = Math.Abs(prescription.BoundingBox.MaxX.Value.Value - prescription.BoundingBox.MinX.Value.Value) / prescription.ColumnCount;
            return cellWidth;
        }