(&mut self, update: impl FnOnce(Affine) -> Affine)
| 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)); |
no outgoing calls
no test coverage detected