add Outline::transformed
This commit is contained in:
parent
541ad28f64
commit
636d5da589
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue