13 return vn + cos(a)*(v - vn) + sin(a)*cross(n, v);
22 if (len > 2 * std::numeric_limits<T>::epsilon())
26 angle = atan2(len, dot(v0, v1));
39 axis(0) = R(2, 1) - R(1, 2);
40 axis(1) = R(0, 2) - R(2, 0);
41 axis(2) = R(1, 0) - R(0, 1);
44 if (len < 2 * std::numeric_limits<T>::epsilon()) {
46 for (
unsigned c = 0; c<3; ++c)
62 angle = atan2(len, tra - T(1));
matrix of fixed size dimensions
fvec< T, N > & col(unsigned j)
reference a column of the matrix as a vector
T trace() const
returns the trace
A vector with zero based index.
T normalize()
normalize the vector using the L2-Norm and return the length
T length() const
length of the vector L2-Norm