Function piston_window::math::transform_pos
pub fn transform_pos<T>(mat: [[T; 3]; 2], a: [T; 2]) -> [T; 2]where
T: Copy + Add<T, Output = T> + Mul<T, Output = T>,
Expand description
Transforms a 2D position through matrix.
pub fn transform_pos<T>(mat: [[T; 3]; 2], a: [T; 2]) -> [T; 2]where
T: Copy + Add<T, Output = T> + Mul<T, Output = T>,
Transforms a 2D position through matrix.