Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

QVM: Quaternions, Vectors, Matrices


#include <boost/qvm/mat_operations.hpp>

namespace qvm
    //Only enabled if:
    //  is_vec<A>::value && vec_traits<A>::dim==3
    template <int Dim,class A,class Angle>
    rot_mat( A const & axis, Angle angle );


A matrix of unspecified type, of Dim rows and Dim columns parameter, which performs a rotation around the axis at angle radians.


In case the axis vector has zero magnitude, throws zero_magnitude_error.


The rot_mat function is not a view proxy; it returns a temp object.