Skip to main content

Translation2

Type Alias Translation2 

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

A 2-dimensional translation.

Aliased Type§

#[repr(C)]
pub 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>

Available on crate feature glam014 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam015 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam024 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam025 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam027 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam028 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam029 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam030 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam031 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam032 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam016 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam017 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam018 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam019 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam020 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam021 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam022 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<DVec2> for Translation2<f64>

Available on crate feature glam023 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam014 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam015 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam024 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam025 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam027 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam028 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam029 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam030 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam031 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam032 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam016 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam017 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam018 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam019 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam020 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam021 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam022 only.
Source§

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

Converts to this type from the input type.
Source§

impl From<Vec2> for Translation2<f32>

Available on crate feature glam023 only.
Source§

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

Converts to this type from the input type.