Type Alias Affine

Source
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 + PartialEq,

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>,

Source§

type Val = (T, T)

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

fn e() -> Self::Val

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

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

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