pub type Translation4<T> = Translation<T, 4>;Expand description
A 4-dimensional translation.
Aliased Type§
#[repr(C)]pub struct Translation4<T> {
pub vector: Matrix<T, Const<4>, Const<1>, ArrayStorage<T, 4, 1>>,
}Fields§
§vector: Matrix<T, Const<4>, Const<1>, ArrayStorage<T, 4, 1>>The translation coordinates, i.e., how much is added to a point’s coordinates when it is translated.
Trait Implementations§
Source§impl From<DVec4> for Translation4<f64>
impl From<DVec4> for Translation4<f64>
Source§fn from(e: DVec4) -> Translation4<f64>
fn from(e: DVec4) -> Translation4<f64>
Converts to this type from the input type.
Source§impl From<Vec4> for Translation4<f32>
impl From<Vec4> for Translation4<f32>
Source§fn from(e: Vec4) -> Translation4<f32>
fn from(e: Vec4) -> Translation4<f32>
Converts to this type from the input type.