src/manifold.rs

changeset 8
17d71ca4ce84
parent 7
8979a6638424
child 13
f67949050a32
equal deleted inserted replaced
7:8979a6638424 8:17d71ca4ce84
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`

mercurial