(&self)
| 982 | } |
| 983 | |
| 984 | pub(crate) fn compute_bounds_world(&self) -> PlotCanvasBounds { |
| 985 | let lo = self.to_local(self.bounds.lo); |
| 986 | let up = self.to_local(self.bounds.up); |
| 987 | |
| 988 | PlotCanvasBounds { up, lo } |
| 989 | } |
| 990 | |
| 991 | /// Convert a point in plot coordinates to a point in world coordinates modulo the canvas position |
| 992 | pub fn to_local(&self, v: Vec2) -> Vec2 { |