Ejemplo n.º 1
0
        public static IEnumerable<Area> LocateEdges(Size resolution, double gridSize, Area viewPort)
        {
            _log.DebugFormat("Looking for intersting areas ({0:N0}x{1:N0})", resolution.Width, resolution.Height);

            var allAreas = AllPossibleAreas(viewPort.RealRange, viewPort.ImaginaryRange, gridSize);
            _log.DebugFormat("Found {0:N0} total areas", allAreas.Count);

            var numbers = new MandelbrotFinder().FindPoints(resolution, viewPort);
            _log.DebugFormat("Found {0:N0} points within the region", numbers.Count);

            var areasWithSomeNumbers = FindAreasWithNumbers(allAreas, numbers);

            return areasWithSomeNumbers;
        }
Ejemplo n.º 2
0
        public static IEnumerable <Area> LocateEdges(Size resolution, double gridSize, Area viewPort)
        {
            _log.DebugFormat("Looking for intersting areas ({0:N0}x{1:N0})", resolution.Width, resolution.Height);

            var allAreas = AllPossibleAreas(viewPort.RealRange, viewPort.ImaginaryRange, gridSize);

            _log.DebugFormat("Found {0:N0} total areas", allAreas.Count);

            var numbers = new MandelbrotFinder().FindPoints(resolution, viewPort);

            _log.DebugFormat("Found {0:N0} points within the region", numbers.Count);

            var areasWithSomeNumbers = FindAreasWithNumbers(allAreas, numbers);

            return(areasWithSomeNumbers);
        }
Ejemplo n.º 3
0
 protected override bool ValidatePoint(Complex c, BailoutRange bailoutRange)
 {
     return MandelbrotFinder.IsInSet(c);
 }