コード例 #1
0
        private bool rotacao(bool consegiuTranslacao)
        {
            funcmat.calculaSenCos();
            if (funcmat.getCotg2teta() == 0 || double.IsNaN(funcmat.getCotg2teta()))
            {
                // Se não tem solução não dá para fazer rotação
                return(false);
            }
            funcmat.calculaAlCl(matrizG2);
            if (consegiuTranslacao) // Se não tiver D e E não precisa calcular dL e eL
            {
            }
            else
            {
                // Calcula dL e
                funcmat.calculaDlEl();
            }

            // Se deu certo o termo quadrático misto é removido
            funcmat.setBL(0);
            return(true);
        }