用于绘制图形的 C++ 库 [英] C++ library for drawing graphics
问题描述
有人可以向我推荐一个好的、免费的、易于使用的 C++ 库,它允许在 microsoft windows 的窗口中绘制数学函数吗?(例如抛物线 x^2+5x+3=0)
Someone can suggest me a good, free, easy to use library for c++ that allow to draw a mathematical function in a window for microsoft windows? (e.g. the parabola x^2+5x+3=0)
推荐答案
另一个基于 wxWidgets 的选项是 wxArt2D,它有很多很好的功能可以将数学函数绘制为曲线,就像你可以轻松地通过这个 y=140*cos(x/20) + 80*cos(x*2/20) + 40*cos(x*4/20)" 到一个曲线对象,它会被绘制出来,太棒了!看看这些屏幕截图,有些曲线是用字符串格式的方程绘制的!
Another wxWidgets-based option is wxArt2D, It has got tons of good features for drawing mathematical functions as curves, like you could easily pass this y=140*cos(x/20) + 80*cos(x*2/20) + 40*cos(x*4/20)" to a curve object and it will get drawn, it's amazing! Check out these screenshots there are some curves drawn by equations in string format!
这篇关于用于绘制图形的 C++ 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!