Function geo_nd::matrix::look_at3

source ·
pub fn look_at3<V: Float>(dirn: &[V; 3], up: &[V; 3]) -> [V; 9]
Expand description

Create a matrix that maps unit dirn to [0,0,-1] and unit up (perp to dirn) to [0,1,0]