Get X/Y-value for (argument, value) pair, taking into account orientation
(&self, argument: f64, value: f64)
| 34 | /// Get X/Y-value for (argument, value) pair, taking into account |
| 35 | /// orientation |
| 36 | fn point_at(&self, argument: f64, value: f64) -> PlotPoint { |
| 37 | match self.orientation() { |
| 38 | Orientation::Horizontal => PlotPoint::new(value, argument), |
| 39 | Orientation::Vertical => PlotPoint::new(argument, value), |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | /// Right top of the rectangle (position of text) |
| 44 | fn corner_value(&self) -> PlotPoint { |
no test coverage detected