File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,11 @@ impl Outline {
178
178
self . bounds = new_bounds. unwrap_or_else ( || RectF :: default ( ) ) ;
179
179
}
180
180
181
+ pub fn transformed ( mut self , transform : & Transform2F ) -> Outline {
182
+ self . transform ( transform) ;
183
+ self
184
+ }
185
+
181
186
pub fn apply_perspective ( & mut self , perspective : & Perspective ) {
182
187
let mut new_bounds = None ;
183
188
for contour in & mut self . contours {
@@ -614,6 +619,12 @@ impl Contour {
614
619
}
615
620
}
616
621
622
+ #[ inline]
623
+ pub fn transformed ( mut self , transform : & Transform2F ) -> Contour {
624
+ self . transform ( transform) ;
625
+ self
626
+ }
627
+
617
628
pub fn apply_perspective ( & mut self , perspective : & Perspective ) {
618
629
for ( point_index, point) in self . points . iter_mut ( ) . enumerate ( ) {
619
630
* point = * perspective * * point;
You can’t perform that action at this time.
0 commit comments