38 #ifndef FCL_MATH_VARIANCE3_INL_H 39 #define FCL_MATH_VARIANCE3_INL_H 41 #include "fcl/math/variance3.h" 48 class Variance3<double>;
52 Variance3<S>::Variance3()
59 Variance3<S>::Variance3(
const Matrix3<S>& sigma) : Sigma(sigma)
68 eigen_old(Sigma, sigma, axis);
75 for(std::size_t i = 0; i < 3; ++i)
80 sigma[i] = std::sqrt(sigma[i]);
84 = sigma[0] * axis.col(0) * axis.col(0).transpose();
86 += sigma[1] * axis.col(1) * axis.col(1).transpose();
88 += sigma[2] * axis.col(2) * axis.col(2).transpose();
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
Variance3< S > & sqrt()
Compute the sqrt of Sigma matrix based on the eigen decomposition result, this is useful when the unc...
Definition: variance3-inl.h:73
Class for variance matrix in 3d.
Definition: variance3.h:51
void init()
init the Variance
Definition: variance3-inl.h:66