5 pub trait ManifoldPoint : Clone + PartialEq { |
5 pub trait ManifoldPoint : Clone + PartialEq { |
6 // Type of tangent factors |
6 // Type of tangent factors |
7 type Tangent : Euclidean<f64, Output=Self::Tangent> + std::fmt::Debug; |
7 type Tangent : Euclidean<f64, Output=Self::Tangent> + std::fmt::Debug; |
8 |
8 |
9 /// Exponential map |
9 /// Exponential map |
10 fn exp(&self, tangent : &Self::Tangent) -> Self; |
10 fn exp(self, tangent : &Self::Tangent) -> Self; |
11 |
11 |
12 /// Logarithmic map |
12 /// Logarithmic map |
13 fn log(&self, other : &Self) -> Self::Tangent; |
13 fn log(&self, other : &Self) -> Self::Tangent; |
14 |
14 |
15 /// Distance to `other` |
15 /// Distance to `other` |