cleanup and new grid
This commit is contained in:
parent
81de6728fc
commit
9a5db444a0
8 changed files with 83 additions and 33 deletions
|
|
@ -13,12 +13,6 @@ pub struct Rotate {
|
|||
|
||||
}
|
||||
|
||||
impl Rotate {
|
||||
pub fn new(cx: f32, cy: f32, angle: f32) -> Self {
|
||||
Self { cx, cy, angle: angle / 180. * PI}
|
||||
}
|
||||
}
|
||||
|
||||
impl Transformers for Rotate {
|
||||
fn apply(&self, point_list: &[Point]) -> Vec<Point> {
|
||||
point_list.iter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue