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

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

private static GetCellHeight ( AgGateway.ADAPT.ApplicationDataModel.Prescriptions.RasterGridPrescription prescription ) : double
prescription AgGateway.ADAPT.ApplicationDataModel.Prescriptions.RasterGridPrescription
Результат double
        private static double GetCellHeight(RasterGridPrescription prescription)
        {
            var cellHeight = 0.0;
            if (prescription.CellHeight != null)
                cellHeight = prescription.CellHeight.Value.Value;
            if (prescription.BoundingBox != null && prescription.BoundingBox.MinY != null && prescription.BoundingBox.MaxY != null)
            {
                cellHeight = Math.Abs(prescription.BoundingBox.MaxY.Value.Value - prescription.BoundingBox.MinY.Value.Value) / prescription.RowCount;
            }
            return cellHeight;
        }