3#include <cgv/math/fvec.h>
4#include <cgv/math/quaternion.h>
5#include <cgv/math/fmat.h>
matrix of fixed size dimensions
void set_col(unsigned j, const fvec< T, N > &v)
set column j of the matrix to vector v
void set_row(unsigned i, const fvec< T, M > &v)
set row i of the matrix to vector v
A vector with zero based index.
T normalize()
normalize the vector using the L2-Norm and return the length
quaternion< T > inverse() const
return the inverse
vec_type apply(const vec_type &v) const
rotate vector according to quaternion
void rotate(vec_type &v) const
rotate vector according to quaternion
void put_matrix(mat_type &M) const
compute equivalent 3x3 rotation matrix