#include <osmanip/graphics/canvas.hpp>
#include <cmath>
#include <cstdint>
#include <functional>
#include <string>
Go to the source code of this file.
|
class | osm::Plot2DCanvas |
| This class is used to plot mathematical functions R -> R. In addition to all the properties of a basic Canvas, this one also has an offset and a scale for the plot. The offset is the first value in x and y to be represented in the canvas and the scale is the difference in x or y that each character represents relative to the previous one. For example: a canvas of size = (15, 10) with offset = (3,2) and scale = (7, 5) will represent the functions you draw from x=3 to x=3+15*7=108 and from y=2 to y=2+10*5=52. More...
|
|
- Author
- Miguel MJ (migue.nosp@m.lmjv.nosp@m.g@gma.nosp@m.il.c.nosp@m.om)
- Date
- 2022-06-06
- Copyright
- Copyright (c) 2022 Gianluca Bianco under the MIT license.
◆ OSMANIP_GRAPHICS_PLOT2DCANVAS_HPP
#define OSMANIP_GRAPHICS_PLOT2DCANVAS_HPP |