Type Alias piston_window::math::Matrix2d
source · pub type Matrix2d<T = f64> = [[T; 3]; 2];
Expand description
The type used for matrices.
Trait Implementations§
source§impl Transformed for [[f64; 3]; 2]
impl Transformed for [[f64; 3]; 2]
source§fn append_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2]
fn append_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2]
Appends transform to the current one.
source§fn prepend_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2]
fn prepend_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2]
Prepends transform to the current one.
source§fn orient(self, x: f64, y: f64) -> [[f64; 3]; 2]
fn orient(self, x: f64, y: f64) -> [[f64; 3]; 2]
Orients x axis to look at point locally. Read more
source§fn trans_pos<P>(self, pos: P) -> Selfwhere
P: Into<[f64; 2]>,
fn trans_pos<P>(self, pos: P) -> Selfwhere P: Into<[f64; 2]>,
Translate position in local coordinates.