Function geo_nd::matrix::translate4

source ·
pub fn translate4<V: Num>(m: &[V; 16], v: &[V; 4]) -> [V; 16]
Expand description

Translate a 4-by-4 matrix by a vector - standard graphics approach

Same as postmultiply by [1 0 0 v0], [0 1 0 v1], [0 0 1 v2], [0 0 0 1]