From 7109d72f346ce2f7ce8e833c06809bc0d686e75e Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 30 Aug 2020 12:51:06 +0200 Subject: [PATCH] Changed view --- ComplexPlotting/PlotWindowManager.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ComplexPlotting/PlotWindowManager.hpp b/ComplexPlotting/PlotWindowManager.hpp index fdfb1e8..c78ed32 100644 --- a/ComplexPlotting/PlotWindowManager.hpp +++ b/ComplexPlotting/PlotWindowManager.hpp @@ -14,7 +14,7 @@ public: static PlotWindow* MakeNew(std::string title) { - PlotWindow* plt = new PlotWindow(PlotWindowCount, title, -2.f, 2.f, -2.f, 2.f); + PlotWindow* plt = new PlotWindow(PlotWindowCount, title, -5.f, 5.f, -5.f, 5.f); plt->Open(); // TODO: remove random values @@ -22,8 +22,12 @@ public: float b = (float)(rand() % 200 - 100) / 100.f; plt->SetCallback(std::bind([a, b](std::complex c) { + /* return std::complex{1, 1} / (c + std::complex{1, 0}) + std::complex{2, 1} / (c + std::complex{-1, 0}); + */ + + return std::tan(std::sin(c)); }, std::placeholders::_1)); plt->DrawTexture();