Type Alias nalgebra::geometry::Translation2

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

A 2-dimensional translation.

Aliased Type§

struct Translation2<T> {
    pub vector: Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>,
}

Fields§

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

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

Trait Implementations§

source§

impl From<DVec2> for Translation2<f64>

source§

fn from(e: DVec2) -> Translation2<f64>

Converts to this type from the input type.
source§

impl From<Vec2> for Translation2<f32>

source§

fn from(e: Vec2) -> Translation2<f32>

Converts to this type from the input type.