its a triangle

This commit is contained in:
2026-01-10 10:38:18 +11:00
parent c0ccfb14c1
commit 7efb97fa5a
3 changed files with 12 additions and 14 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
use crate::consts::*;
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub struct Point2D(pub f64, pub f64);
impl Point2D {
pub fn to_canvas_coordinates(&self) -> Point3D {
@@ -18,7 +18,7 @@ impl Point2D {
}
}
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub struct Point3D(pub f64, pub f64, pub f64);
impl Point3D {
pub fn to_screen_coordinates(&self) -> Point2D {