public void ZoomInShouldWork() { FCoordsMath fCoordsMath = new FCoordsMath(); PointDd start = new PointDd(new Dd(2), new Dd(-1)); PointDd end = new PointDd(new Dd(4), new Dd(1)); MCoordsDd coords = new MCoordsDd(start, end); SizeInt samplePoints = new SizeInt(100, 100); RectangleInt area = new RectangleInt(new PointInt(40, 40), new SizeInt(20, 20)); MCoordsDd result = fCoordsMath.ZoomIn(coords, samplePoints, area); }
private FGenJob CreateJob() { PointDd start = new PointDd(new Dd(-2), new Dd(-1)); PointDd end = new PointDd(new Dd(1), new Dd(1)); SizeInt samplePoints = new SizeInt(FGenerator.BLOCK_WIDTH, FGenerator.BLOCK_HEIGHT); uint maxIterations = 300; RectangleInt area = new RectangleInt(new PointInt(0, 0), samplePoints); FGenJob fGenJob = new FGenJob(42, start, end, samplePoints, maxIterations, area); return(fGenJob); }
private FGenJob CreateJob(FJobRequest fJobRequest) { PointDd start = new PointDd(new Dd(fJobRequest.Coords.StartX), new Dd(fJobRequest.Coords.StartY)); PointDd end = new PointDd(new Dd(fJobRequest.Coords.EndX), new Dd(fJobRequest.Coords.EndY)); qdDotNet.SizeInt samplePoints = new qdDotNet.SizeInt(fJobRequest.SamplePoints.W, fJobRequest.SamplePoints.H); qdDotNet.RectangleInt area = new qdDotNet.RectangleInt( new qdDotNet.PointInt(fJobRequest.Area.Point.X, fJobRequest.Area.Point.Y), new qdDotNet.SizeInt(fJobRequest.Area.Size.W, fJobRequest.Area.Size.H)); FGenJob fGenJob = new FGenJob(fJobRequest.JobId, start, end, samplePoints, fJobRequest.MaxIterations, area); return(fGenJob); }
private MCoordsDd GetMCoords(Coords coords) { Dd startX = new Dd(coords.StartX); Dd endX = new Dd(coords.EndX); Dd startY = new Dd(coords.StartY); Dd endY = new Dd(coords.EndY); PointDd start = new PointDd(startX, startY); PointDd end = new PointDd(endX, endY); MCoordsDd result = new MCoordsDd(start, end); return(result); }