pub trait AffineTransform<T> {
    // Required methods
    fn id_() -> Self;
    fn compose(&self, rhs: &Self) -> Self;
    fn apply(&self, x: T) -> T;
    fn pow(&self, p: usize) -> Self;
}
Expand description

Affine変換の実装

Required Methods§

source

fn id_() -> Self

単位元を返す

source

fn compose(&self, rhs: &Self) -> Self

affine変換をマージする

  • f.compose(g) = $f \circ g$ = $f(g(x))$
source

fn apply(&self, x: T) -> T

スカラ値xに対し,affine変換を適用する

source

fn pow(&self, p: usize) -> Self

affine変換を累乗する

Implementors§

source§

impl<T> AffineTransform<T> for Affine<T>where T: Add<Output = T> + Mul<Output = T> + Zero + One + Copy,