Factory functions for 3D spatial transformations. More...
Enumerations | |
enum | fwd_axis { neg_z , pos_z } |
enum | z_range { neg_one_to_one , zero_to_one } |
Functions | |
template<class T > | |
mat< T, 4, 4 > | translation_matrix (const vec< T, 3 > &translation) |
template<class T > | |
mat< T, 4, 4 > | rotation_matrix (const vec< T, 4 > &rotation) |
template<class T > | |
mat< T, 4, 4 > | scaling_matrix (const vec< T, 3 > &scaling) |
template<class T > | |
mat< T, 4, 4 > | pose_matrix (const vec< T, 4 > &q, const vec< T, 3 > &p) |
template<class T > | |
mat< T, 4, 4 > | lookat_matrix (const vec< T, 3 > &eye, const vec< T, 3 > ¢er, const vec< T, 3 > &view_y_dir, fwd_axis fwd=neg_z) |
template<class T > | |
mat< T, 4, 4 > | frustum_matrix (T x0, T x1, T y0, T y1, T n, T f, fwd_axis a=neg_z, z_range z=neg_one_to_one) |
template<class T > | |
mat< T, 4, 4 > | perspective_matrix (T fovy, T aspect, T n, T f, fwd_axis a=neg_z, z_range z=neg_one_to_one) |
Factory functions for 3D spatial transformations.