fix code + dummy dac

This commit is contained in:
Marc Planard 2023-06-29 23:24:56 +02:00
parent ce86a1cecb
commit f307fea63c
16 changed files with 88 additions and 26 deletions

View file

@ -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;