Exemplo n.º 1
0
        private void btnCartersian_Click(object sender, EventArgs e)
        {
            RectangleSet pA    = new RectangleSet(0, CartersianSize, CartersianSize);
            double       shift = -(CartersianSize - 1) / 2.0;

            pA.Translate(shift, shift, 0);
            var pB = pA.Clone().SetType(1);
            var pC = pA.Clone().SetType(2);

            pB.Rotate(Math.PI / 2, 'y');
            pC.Rotate(Math.PI / 2, 'x');
            (pA + pB + pC).Show();
        }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            RectangleSet rect = new RectangleSet(1, RectRows, RectColumns);

            rect.Show();
        }