add Outline::transformed
@@ -178,6 +178,11 @@ impl Outline {
self.bounds = new_bounds.unwrap_or_else(|| RectF::default());
}
+ pub fn transformed(mut self, transform: &Transform2F) -> Self {
+ self.transform(transform);
+ self
+ }
+
pub fn apply_perspective(&mut self, perspective: &Perspective) {
let mut new_bounds = None;
for contour in &mut self.contours {
