src/manifold.rs

changeset 5
f248e1434c3b
parent 3
ff4656da04af
child 6
df9628092285
--- a/src/manifold.rs	Fri Oct 18 19:52:06 2024 -0500
+++ b/src/manifold.rs	Sat Oct 19 10:46:13 2024 -0500
@@ -1,3 +1,5 @@
+
+use alg_tools::euclidean::Euclidean;
 
 /// A point on a manifold
 pub trait ManifoldPoint : Clone + PartialEq {
@@ -9,4 +11,8 @@
 
     /// Logarithmic map
     fn log(&self, other : &Self) -> Self::Tangent;
+
+    /// Distance to `other`
+    fn dist_to(&self, other : &Self) -> f64;
 }
+

mercurial