Esempio n. 1
0
        private void button6_Click(object sender, EventArgs e)
        {
            double x1    = Double.Parse(textBoxX1.Text);
            double y1    = Double.Parse(textBoxY1.Text);
            double z1    = Double.Parse(textBoxZ1.Text);
            double x2    = Double.Parse(textBoxX2.Text);
            double y2    = Double.Parse(textBoxY2.Text);
            double z2    = Double.Parse(textBoxZ2.Text);
            double angle = Double.Parse(textBoxAngle.Text);

            Tuple <PointPol, PointPol> e1 = Tuple.Create(new PointPol(x1, y1, z1), new PointPol(x2, y2, z2));

            pol.rotate(e1, angle);
            Clear();
            print();
        }
Esempio n. 2
0
        private void button6_Click(object sender, EventArgs e)
        {
            ClearWithout();
            write_axes();

            double x1 = Double.Parse(textBoxX1.Text.ToString());
            double y1 = Double.Parse(textBoxY1.Text.ToString());
            double z1 = Double.Parse(textBoxZ1.Text.ToString());
            double x2 = Double.Parse(textBoxX2.Text.ToString());
            double y2 = Double.Parse(textBoxY2.Text.ToString());
            double z2 = Double.Parse(textBoxZ2.Text.ToString());

            double angle = Double.Parse(textBoxAngle.Text.ToString());

            PointPol p1 = new PointPol(x1, y1, z1);
            PointPol p2 = new PointPol(x2, y2, z2);

            figure.rotate(Tuple.Create(p1, p2), angle);
            print_figure();
        }