示例#1
0
        } // Draw()

        // calcula o ângulo em graus entre dois vetores.
        private double AnguloEntreVetores(vetor2 v1, vetor2 v2)
        {
            double n1 = v1.Modulo();
            double n2 = v2.Modulo();

            if ((n1 == 0.0) || (n2 == 0))
            {
                return(100.0);
            }
            double produtoEscalar = vetor2.ProdutoEscalar(v1, v2);

            return(angulos.toGraus(Math.Acos(produtoEscalar / (n1 * n2))));
        } //  AnguloEntreVetores()