Beispiel #1
0
    private float[] GetHeightLevelBorders(HeightLevelType levelType)
    {
        float[] borders = new float[2];

        if (levelType != HeightLevelType.UNDEFINED)
        {
            List <HeightLevel> levels = areaCalculator.GetHeightLevels();
            borders[0] = levels.Where(a => a.type == levelType).FirstOrDefault().lowerBorder;
            borders[1] = levels.Where(a => a.type == levelType).FirstOrDefault().upperBorder;
        }
        return(borders);
    }