hyperbolic_drawing 1.0.0

Manipulate and display elements of 2D hyperbolic space (ℍ²)
Documentation
//! Elements for interfacing with the [`svg`] crate.

use svg_fmt::Path;

pub use crate::svg_common::*;

impl<K> LinePlotter<K> for Path
where K: Into<f32> {
	fn new() -> Self {
		svg_fmt::path()
	}
	fn move_to(self, x: K, y: K) -> Self {
		self.move_to(x.into(), y.into())
	}
	fn line_to(self, x: K, y: K) -> Self {
		self.line_to(x.into(), y.into())
	}
	fn close(self) -> Self {
		self.close()
	}
}