Type Alias rapier2d::math::Translation

source ·
pub type Translation<N> = Translation<N, 2>;
Expand description

The translation type.

Aliased Type§

struct Translation<N> {
    pub vector: Matrix<N, Const<2>, Const<1>, ArrayStorage<N, 2, 1>>,
}

Fields§

§vector: Matrix<N, Const<2>, Const<1>, ArrayStorage<N, 2, 1>>

The translation coordinates, i.e., how much is added to a point’s coordinates when it is translated.