MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / translate

Method translate

src/renderer/default.rs:67–70  ·  view source on GitHub ↗
(&mut self, x: f32, y: f32)

Source from the content-addressed store, hash-verified

65 }
66
67 fn translate(&mut self, x: f32, y: f32) {
68 self.transform.x += x;
69 self.transform.y += y;
70 }
71}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected