mirror of
https://github.com/stickynotememo/wolf_renderer.git
synced 2026-07-30 06:46:03 +10:00
its a triangle
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user