add point + doc -> readme

This commit is contained in:
2025-07-08 22:37:28 +02:00
parent 26a96fd933
commit 87f1b56eac
4 changed files with 35 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ impl RotationExt for Vector {
)
}
}
#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, Clone)]
pub struct PolygonFrame {
pub teta: f32,
pub polygons: Vec<Polygon>,
@@ -118,7 +118,7 @@ impl<Message> canvas::Program<Message> for PolygonFrame {
}
}
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Polygon {
pub global_teta: f32,
pub points_teta: Vec<f32>,