Ejemplo n.º 1
0
        private static void FitLayersInBounds(NodeLayers layers, float[] topBounds)
        {
            float dy = -99999;

            for (int i = 0; i < layers.LayerCount(); ++i)
            {
                dy = Math.Max(dy, topBounds[i] - layers.TopPosition(i));
            }
            layers.MoveVertically(dy);
            for (int i = 0; i < layers.LayerCount(); ++i)
            {
                topBounds[i] = Math.Max(topBounds[i], layers.BottomPosition(i) + 1);
            }
        }
Ejemplo n.º 2
0
 public bool IsBottomLayer() => _layer >= _layers.LayerCount();