src/manifold.rs

Fri, 18 Oct 2024 14:22:45 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 18 Oct 2024 14:22:45 -0500
changeset 3
ff4656da04af
parent 0
989e2fe08db2
child 5
f248e1434c3b
permissions
-rw-r--r--

Sketch exp


/// A point on a manifold
pub trait ManifoldPoint : Clone + PartialEq {
    // Type of tangent factors
    type Tangent : Euclidean<f64, Output=Self::Tangent> + std::fmt::Debug;

    /// Exponential map
    fn exp(&self, tangent : &Self::Tangent) -> Self;

    /// Logarithmic map
    fn log(&self, other : &Self) -> Self::Tangent;
}

mercurial