fix warnings
This commit is contained in:
parent
256599095f
commit
81de6728fc
2 changed files with 3 additions and 3 deletions
|
|
@ -23,8 +23,8 @@ impl Transformers for Rotate {
|
|||
fn apply(&self, point_list: &[Point]) -> Vec<Point> {
|
||||
point_list.iter()
|
||||
.map(| pt | {
|
||||
let dx = (pt.x - self.cx);
|
||||
let dy = (pt.y - self.cy);
|
||||
let dx = pt.x - self.cx;
|
||||
let dy = pt.y - self.cy;
|
||||
let cos = self.angle.cos();
|
||||
let sin = self.angle.sin();
|
||||
let x = (dx * cos - dy * sin) + self.cx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue