Function piston_window::math::transform_vec

source ยท
pub fn transform_vec<T>(mat: [[T; 3]; 2], a: [T; 2]) -> [T; 2]
where T: Copy + Add<Output = T> + Mul<Output = T>,
Expand description

Transforms a 2D vector through matrix.

To include the translate component, use the transform_pos variant.