fix warnings
This commit is contained in:
parent
256599095f
commit
81de6728fc
@ -73,7 +73,7 @@ fn run_all() -> LJResult<()> {
|
|||||||
let frame = get_next_frame(&config, &transformers,
|
let frame = get_next_frame(&config, &transformers,
|
||||||
&mut rs, order == Order::Black)?;
|
&mut rs, order == Order::Black)?;
|
||||||
// For now, draw all the time
|
// For now, draw all the time
|
||||||
tracer.draw(frame, 10_000)?;
|
tracer.draw(frame, 40_000)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
info!("Exiting, stoping device.");
|
info!("Exiting, stoping device.");
|
||||||
|
@ -23,8 +23,8 @@ impl Transformers for Rotate {
|
|||||||
fn apply(&self, point_list: &[Point]) -> Vec<Point> {
|
fn apply(&self, point_list: &[Point]) -> Vec<Point> {
|
||||||
point_list.iter()
|
point_list.iter()
|
||||||
.map(| pt | {
|
.map(| pt | {
|
||||||
let dx = (pt.x - self.cx);
|
let dx = pt.x - self.cx;
|
||||||
let dy = (pt.y - self.cy);
|
let dy = pt.y - self.cy;
|
||||||
let cos = self.angle.cos();
|
let cos = self.angle.cos();
|
||||||
let sin = self.angle.sin();
|
let sin = self.angle.sin();
|
||||||
let x = (dx * cos - dy * sin) + self.cx;
|
let x = (dx * cos - dy * sin) + self.cx;
|
||||||
|
Loading…
Reference in New Issue
Block a user