Returns the combined affine transform of this node and its ancestors, up to and including the root of this node's tree.
(&self)
| 280 | /// Returns the combined affine transform of this node and its ancestors, |
| 281 | /// up to and including the root of this node's tree. |
| 282 | pub fn transform(&self) -> Affine { |
| 283 | let mut acc = self.direct_transform(); |
| 284 | let mut current = *self; |
| 285 | while let Some(parent) = current.parent() { |
| 286 | acc = parent.direct_transform() * acc; |
| 287 | current = parent; |
| 288 | } |
| 289 | acc |
| 290 | } |
| 291 | |
| 292 | pub(crate) fn relative_transform(&self, stop_at: &Node) -> Affine { |
| 293 | let mut acc = self.direct_transform(); |
no test coverage detected