MCPcopy Create free account
hub / github.com/Kethku/Pando / scale_about

Method scale_about

aspen/src/context_stack/draw_context.rs:273–275  ·  view source on GitHub ↗
(&mut self, scale: f64, center: Point)

Source from the content-addressed store, hash-verified

271 }
272
273 pub fn scale_about(&mut self, scale: f64, center: Point) {
274 self.update_local_transform(|t| t.then_scale_about(scale, center));
275 }
276
277 pub fn translate(&mut self, offset: Vec2) {
278 self.update_local_transform(|t| t.then_translate(offset));

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected