pub type Affine<T> = (T, T);
Expand description

1次元のAffine変換を表す型

Trait Implementations§

source§

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

source§

fn id_() -> Self

単位元を返す
source§

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

affine変換をマージする Read more
source§

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

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

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

affine変換を累乗する
source§

impl<T> Monoid for Affine<T>where T: Clone + Debug, Affine<T>: AffineTransform<T>,

§

type Val = (T, T)

データの型 ($S$)
source§

fn id() -> Self::Val

単位元 ($\varnothing \to S$)
source§

fn op(left: &Self::Val, right: &Self::Val) -> Self::Val

演算 ($S \times S \to S$)