private void escalar_Click(object sender, EventArgs e) { float[,] matriz = Matriz.SalvarMatriz(Geometrypanel, geometryLine, geometryCol); matriz = Matriz.MultiplicarMatrizes(Geometria.Escalar(float.Parse(escalarbox.Text)), matriz); Geometria.DrawInChart(grafico, matriz, "Matriz"); Matriz.DesenhaMatrixText(Geometrypanel, matriz); Geometria.DrawInPanel(DrawPanel, matriz); }
private void escalar_Click(object sender, EventArgs e) { try { float[,] matriz = Matriz.SalvarMatriz(Geometrypanel, geometryLine, geometryCol); float[,] initialmatriz = matriz; matriz = Matriz.MultiplicarMatrizes(Geometria.Escalar(float.Parse(escalarbox.Text)), matriz); //Geometria.DrawInChart(grafico, matriz, "Matriz"); matrizinitial = initialmatriz; matrizfinal = matriz; startanimation = true; Matriz.DesenhaMatrixText(Geometrypanel, matriz); } catch (NoMatrixException ex) { MessageBox.Show("Entre uma matriz para gerar a forma", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } catch (MultiplyException ex) { MessageBox.Show("Entre uma matriz para gerar a forma", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } }