| 6 | |
| 7 | |
| 8 | math::Vec ZoomWidget::getRelativeOffset(math::Vec v, Widget* ancestor) { |
| 9 | // Transform `v` (which is in child coordinates) to local coordinates. |
| 10 | v = v.mult(zoom); |
| 11 | return Widget::getRelativeOffset(v, ancestor); |
| 12 | } |
| 13 | |
| 14 | |
| 15 | float ZoomWidget::getRelativeZoom(Widget* ancestor) { |