Skip to main content

Interpolatable

Trait Interpolatable 

Source
pub trait Interpolatable: LieGroup {
    // Required methods
    fn interp(&self, other: &Self, t: f64) -> Self;
    fn slerp(&self, other: &Self, t: f64) -> Self;
}
Expand description

Trait for Lie groups that support interpolation.

Required Methods§

Source

fn interp(&self, other: &Self, t: f64) -> Self

Linear interpolation in the manifold.

For parameter t ∈ [0,1]: interp(g₁, g₂, 0) = g₁, interp(g₁, g₂, 1) = g₂.

§Arguments
  • other - Target element for interpolation
  • t - Interpolation parameter in [0,1]
Source

fn slerp(&self, other: &Self, t: f64) -> Self

Spherical linear interpolation (when applicable).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§