aboutsummaryrefslogtreecommitdiff
path: root/evc/src/debug.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-07 17:16:40 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-07 17:16:40 +0100
commit85d20c4f4cf3656fbf7c27b6b8bbf9536e3ae04d (patch)
tree06497577894131a66f3f4874a9865da5b814fe17 /evc/src/debug.rs
parenta713143ef9c1187c37004043b1d3322d773f9ea0 (diff)
downloadvideo-codec-experiments-85d20c4f4cf3656fbf7c27b6b8bbf9536e3ae04d.tar
video-codec-experiments-85d20c4f4cf3656fbf7c27b6b8bbf9536e3ae04d.tar.bz2
video-codec-experiments-85d20c4f4cf3656fbf7c27b6b8bbf9536e3ae04d.tar.zst
refactor, matrix math
Diffstat (limited to 'evc/src/debug.rs')
-rw-r--r--evc/src/debug.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/evc/src/debug.rs b/evc/src/debug.rs
index 0858fe4..d2102ba 100644
--- a/evc/src/debug.rs
+++ b/evc/src/debug.rs
@@ -1,4 +1,4 @@
-use crate::{frame::Frame, pixel::Pixel, vec2::Vec2, view::View};
+use crate::{frame::Frame, helpers::vector::Vec2, pixel::Pixel, view::View};
impl View<&mut Frame> {
pub fn draw_box(&mut self, color: Pixel) {
@@ -16,7 +16,7 @@ impl View<&mut Frame> {
}
impl Frame {
- pub fn draw_line(&mut self, start: Vec2, end: Vec2, color: Pixel) {
+ pub fn draw_line(&mut self, start: Vec2<isize>, end: Vec2<isize>, color: Pixel) {
let (sx, sy) = (start.x as f32, start.y as f32);
let (ex, ey) = (end.x as f32, end.y as f32);
let (dx, dy) = (ex - sx, ey - sy);