bool GLC_Interpolator::CalcInterpolLineaireMat(void) { const GLC_Vector3d VectTrans= (m_EndPoint - m_StartPoint) * (1.0 / m_StepCount); if(VectTrans.isNull()) { m_InterpolMat.setToIdentity(); return false; } else { m_InterpolMat.setMatTranslate(VectTrans); return true; } }
// Calcul la matrice d'interpolation linéaire bool GLC_Interpolator::CalcInterpolLineaireMat(void) { // Calcul la matrice de translation const GLC_Vector3d VectTrans= (m_VectArrive - m_VectDepart) * (1.0 / m_nNbrPas); if(VectTrans.isNull()) { //TRACE("GLC_Interpolator::CalcInterpolLineaireMat -> Translation NULL\n"); m_InterpolMat.setToIdentity(); return false; } else { m_InterpolMat.setMatTranslate(VectTrans); return true; } }