Trait AffineTransform

Source
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変換を累乗する

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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