Class of a range of a plot.
More...
#include <func_sketch/plotter/plot_range.h>
|
| | PlotRange (const std::pair< double, double > &x_range, const std::pair< double, double > &y_range) |
| | Constructor.
|
| auto | x_range () const noexcept -> std::pair< double, double > |
| | Get X range.
|
| auto | y_range () const noexcept -> std::pair< double, double > |
| | Get Y range.
|
| bool | contains (const Point &point) const noexcept |
| | Check if a point is in the range.
|
|
| std::pair< double, double > | x_range_ |
| | X range.
|
| std::pair< double, double > | y_range_ |
| | Y range.
|
Class of a range of a plot.
Definition at line 35 of file plot_range.h.
◆ PlotRange()
| func_sketch::plotter::PlotRange::PlotRange |
( |
const std::pair< double, double > & | x_range, |
|
|
const std::pair< double, double > & | y_range ) |
|
inline |
Constructor.
- Parameters
-
| [in] | x_range | X range. |
| [in] | y_range | Y range. |
Definition at line 43 of file plot_range.h.
◆ x_range()
| auto func_sketch::plotter::PlotRange::x_range |
( |
| ) |
const->std::pair< double, double > |
|
inlinenodiscardnoexcept |
Get X range.
- Returns
- X range.
Definition at line 65 of file plot_range.h.
◆ y_range()
| auto func_sketch::plotter::PlotRange::y_range |
( |
| ) |
const->std::pair< double, double > |
|
inlinenodiscardnoexcept |
Get Y range.
- Returns
- Y range.
Definition at line 74 of file plot_range.h.
◆ contains()
| bool func_sketch::plotter::PlotRange::contains |
( |
const Point & | point | ) |
const |
|
inlinenodiscardnoexcept |
Check if a point is in the range.
- Parameters
-
- Return values
-
| true | The point is in the range. |
| false | The point is not in the range. |
Definition at line 85 of file plot_range.h.
◆ x_range_
| std::pair<double, double> func_sketch::plotter::PlotRange::x_range_ |
|
private |
◆ y_range_
| std::pair<double, double> func_sketch::plotter::PlotRange::y_range_ |
|
private |
The documentation for this class was generated from the following file: