11 PONCA_MULTIARCH_STD_MATH(sqrt);
14 const VectorType lq = Base::getNeighborFilter().convertToLocalBasis(_q);
20 Scalar sqnorm = m_ul.squaredNorm();
21 return Base::getNeighborFilter().convertToGlobalBasis( lq - m_ul*(lq.dot(m_ul))/sqnorm );
25 Scalar potential = potentialLocal(lq);
28 Scalar t = - (norm - sqrt(norm*norm -
Scalar(4) * m_uq * potential)) / (
Scalar(2) * m_uq * norm);
29 return Base::getNeighborFilter().convertToGlobalBasis( lq + t * grad );