From f8a80039c74332e2101a177ef3fde31ef2077224 Mon Sep 17 00:00:00 2001 From: Micha White Date: Thu, 15 Aug 2024 20:14:15 -0400 Subject: Lots a changes --- tvg/src/lib.rs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'tvg/src/lib.rs') diff --git a/tvg/src/lib.rs b/tvg/src/lib.rs index 5c9e1d2..16a95bd 100644 --- a/tvg/src/lib.rs +++ b/tvg/src/lib.rs @@ -10,6 +10,7 @@ pub mod colors; mod commands; mod header; mod path; +mod render; pub use header::SUPPORTED_VERSION; @@ -146,24 +147,6 @@ fn read_unit(reader: &mut impl Read, header: &TvgHeader) -> io::Result { Ok((value as f64) / fractional) } -/// A X and Y coordinate pair. -#[derive(Debug, Clone, Copy)] -pub struct Point { - /// Horizontal distance of the point to the origin. - x: f64, - /// Vertical distance of the point to the origin. - y: f64, -} - -impl Decode for Point { - fn read(reader: &mut impl Read, header: &TvgHeader) -> io::Result { - Ok(Self { - x: read_unit(reader, header)?, - y: read_unit(reader, header)?, - }) - } -} - fn read_varuint(reader: &mut impl Read) -> io::Result { let mut count = 0; let mut result = 0; -- cgit v1.2.3