MCPcopy Create free account
hub / github.com/VCVRack/Rack / getRelativeOffset

Method getRelativeOffset

src/widget/ZoomWidget.cpp:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7
8math::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
15float ZoomWidget::getRelativeZoom(Widget* ancestor) {

Callers

nothing calls this directly

Calls 1

multMethod · 0.80

Tested by

no test coverage detected