Add Perspective::post_mul

This commit is contained in:
Alan Jeffrey 2019-03-20 13:59:55 -05:00
parent 0458d9a7f2
commit 1769246e5a
1 changed files with 8 additions and 0 deletions

View File

@ -282,6 +282,14 @@ impl Perspective {
let max_point = upper_left.max(upper_right).max(lower_left).max(lower_right);
RectF32::from_points(min_point, max_point)
}
#[inline]
pub fn post_mul(&self, other: &Transform3DF32) -> Perspective {
Perspective {
transform: self.transform.post_mul(other),
window_size: self.window_size,
}
}
}
/// Transforms a path with a perspective projection.