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

Method update_local_transform

aspen/src/context_stack/draw_context.rs:252–255  ·  view source on GitHub ↗
(&mut self, update: impl FnOnce(Affine) -> Affine)

Source from the content-addressed store, hash-verified

250 }
251
252 pub fn update_local_transform(&mut self, update: impl FnOnce(Affine) -> Affine) {
253 let transform = self.local_transform_stack.last_mut().unwrap();
254 *transform = update(*transform);
255 }
256
257 pub fn rotate(&mut self, radians: f64) {
258 self.update_local_transform(|t| t.then_rotate(radians));

Callers 7

rotateMethod · 0.80
rotate_aboutMethod · 0.80
scaleMethod · 0.80
scale_non_uniformMethod · 0.80
scale_aboutMethod · 0.80
translateMethod · 0.80
transformMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected