fix code + dummy dac
This commit is contained in:
parent
ce86a1cecb
commit
f307fea63c
16 changed files with 88 additions and 26 deletions
|
|
@ -1,5 +1,7 @@
|
|||
use crate::transformer::Transformers;
|
||||
use crate::point::Point;
|
||||
use crate::worldstate::WorldState;
|
||||
|
||||
use serde::{Serialize,Deserialize};
|
||||
//use std::f32::consts::PI;
|
||||
|
||||
|
|
@ -14,7 +16,7 @@ pub struct Rotate {
|
|||
}
|
||||
|
||||
impl Transformers for Rotate {
|
||||
fn apply(&self, point_list: &[Point]) -> Vec<Point> {
|
||||
fn apply(&self, point_list: &[Point], _ws: &WorldState) -> Vec<Point> {
|
||||
point_list.iter()
|
||||
.map(| pt | {
|
||||
let dx = pt.x - self.cx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue