src/manifold.rs

changeset 7
8979a6638424
parent 6
df9628092285
child 8
17d71ca4ce84
--- a/src/manifold.rs	Mon Oct 21 08:44:23 2024 -0500
+++ b/src/manifold.rs	Mon Oct 21 10:02:57 2024 -0500
@@ -19,3 +19,10 @@
     fn tangent_origin(&self) -> Self::Tangent;
 }
 
+/// Point on a manifold that possesses displayable embedded coordinates.
+pub trait EmbeddedManifoldPoint : ManifoldPoint + std::fmt::Debug {
+    type EmbeddedCoords : std::fmt::Display;
+
+    /// Convert a point on a manifold into embedded coordinates
+    fn embedded_coords(&self) -> Self::EmbeddedCoords;
+}

mercurial